Rotate it by 90 degrees in the clockwise direction.
Example:
Input Matrix : 1 0 0 1 Output : 0 1 1 0
public static int[][] rotate(int[][] matrix) { }