Netcracker Technology Interview Question

write a program to transpose a matrix