Reverse traversal of sparse matrix

https://i.stack.imgur.com/Q0VRN.jpg pls solve this question or help me in solving this its urgent. even i can understand the output

Hey @shrutikatyal
Follow this
Please tell the doubts in this Question

Closing this one because it is copy of this thread :Traverse a sparse matrix

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.