[E-6] Write a function that adds up the elements in a 2D array.
[E-6]
long add2DArray( int nrows, int ncols, int x[nrows][ncols] )