C++ | Simple Solution
Comment down if you want an explanation of the code.\n\nclass Solution {\npublic:\n    vector<vector<char>> rotateTheBox(vector<vector<char>>& box) {\n        i
Comment down if you want an explanation of the code.\n```\nclass Solution {\npublic:\n    vector<vector<char>> rotateTheBox(vector<vector<char>>& box) {\n        int m = box.size();\n        int n = box[0].size();\n        vector<vector<char>> new_box(n,vector<char>(m,\'.\'));\n        //Rotate the Box\n        for(int i=0;i<m;i++)\n        {\n            for(int j=0;j<n;j++)\n            {\n                new_box[j][m-i-1] = box[i][j];\n            }\n        }\n        //Check each column for empty space, once found swap it with stone\n        for(int j=0;j<m;j++)\n        {\n            for(int i=n-1;i>=0;i--)\n            {\n                if(new_box[i][j]==\'*\' or new_box[i][j]==\'#\')\n                    continue;\n                int temp = i-1;\n                while(temp>=0)\n                {\n                   \n                    if(new_box[temp][j]==\'.\')\n                    {\n                        temp--;\n                        continue;\n                    }\n                    else if(new_box[temp][j]==\'*\')\n                        break;\n                    else\n                    {\n                        new_box[i][j] = \'#\';\n                        new_box[temp][j] = \'.\';\n                        break;\n                    }\n                }\n            }\n        }\n        return new_box;\n    }\n};\n```
['C']