Wipro Interview Question

write the algorithm or logic for matrix in c