Your Task: You dont need to read input or print anything. Complete the function transpose() which takes matrix and N as input parameter and finds the transpose of the input matrix. You need to do this in-place. That is you need to update the original matrix with the transpose.
Expected Time Complexity: O(N * N) Expected Auxiliary Space: O(1)