Box Rotation Simulation

Simulate gravity on stones and rotate matrix using two pointers per row.

Examples
Input: [1,2,3]
Output: []
Hints

Box Rotation Simulation

Simulate gravity on stones and rotate matrix using two pointers per row.