Wipro interview question

write the algorithm or logic for matrix in c