Given an array of M x N elements (M rows, N columns), return all elements of the array in diagonal order .
Input Format
Two integers M(row) and N(column) and Second line contains N*M space separated integers denoting the elements of Array.
Constraints