1) In a two-dimensional array the size
of NxM output the last row
2) In a two-dimensional array the size
of NxM output the first column
3) In a two-dimensional array the size
of NxN to output the main diagonal in the opposite direction(inversion)
4) In a two-dimensional array the size
of NxN to output the side diagonal in the opposite direction(inversion)
5) Search element X in main diagonal( main diagonal ia ascending order)
6) Search element X in side diagonal( side diagonal in ascending order). Use algorithm #1 and #2