Qualcomm Interview Question

Two dimensional array and Transpose