Write a program that inverts a 2D array. Inverting a 2D array means that each row of the 2D array is now a column, and each column is now a row.
Sample input 1 1 1 2 2 2 3 3 3
Sample output 1 2 3 1 2 3 1 2 3