You already have a 2D array inputArray. Print all of its corners in the following order: left to right and top to bottom.
Print the result for two elements in the line. Use a single space to separate two elements on the same line.
Take a look at the examples below, and remember that nested arrays can be of different lengths!
Tip: You can use first() and last().