PREP02 Editorial

Problem Explanation

We are given a 2D matrix and we have to output that matrix rotated 180 degrees.

Approach

To Output the matrix rotated 180 degrees we just iterate the matrix from the end till the beginning and output it in that order.