Rotating The Box Leetcode Solution