Flip the given Matrix along both diagonals in clockwise direction
Given a matrix arr[][] of size M*N, where M is the number of rows and N is the number of columns. The task is to flip the matrix by both diagonals. Flipping the matrix means rotating all elements of the matrix in a clockwise direction, along the diagonal. Examples: Input: arr[][] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }Output: { {9, 8, 7}, {6, 5, 4},