Diagonal pattern program in java. Print the 2-D array obtained in a matrix layout.