Nagarro Interview Question

Write a programme to change the matrix table