Diagonal Traversal of a Matrix II
Given a vectors of vectors arr[], the task is to print the elements of arr[] in the diagonally upwards order as illustrated below. Examples: Input: arr[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}Output: 1 4 2 7 5 3 8 6 9Explanation:Below is the illustration of how diagonally upward order is printed: Input: arr[][] = {{1, 2, 3, 4, 5}, {6, 7}, {8}, {9, 1