Amazon interview question

one of the question on OA was Rotating the Box from LeetCode. Link: https://leetcode.com/problems/rotating-the-box/description/