Imagine that the user provides a 2D grids. Return true or false depending on whether or not the elements in the grid are in sorted order. For example, if the user enters[[1, 2, 3, 5], [6, 7], [8, 9, 12]] your code would return true. If the user enters[[1, 2, 3, 5], [11, 7], [8, 9, 12]] your code would return false.
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |