Easy To Understand
```\nclass Solution {\npublic:\n    vector> rotateTheBox(vector>& box) {\n        \n        int m=box.size();\n        int n=box[0].size(); \n        vector>ans
```\nclass Solution {\npublic:\n    vector<vector<char>> rotateTheBox(vector<vector<char>>& box) {\n        \n        int m=box.size();\n        int n=box[0].size(); \n        vector<vector<char>>ans(n,vector<char>(m,\'.\'));\n\t\t\n        for(int i=0;i<m;i++){\n            int lastInd=-1;\n            for(int j=n-1;j>=0;j--){\n               if(box[i][j]==\'.\')\n                   {if(lastInd==-1)\n                      lastInd=j;\n                   }\n               else if(box[i][j]==\'*\'){\n                   ans[j][i]=\'*\';\n                   lastInd=-1;\n                \n            }\n               else if(box[i][j]==\'#\'){\n                   if(lastInd==-1){\n                       ans[j][i]=\'#\';\n                 \n                   }\n                   else{\n                \n                       \n                    ans[lastInd][i]=\'#\';\n                    lastInd=lastInd-1;\n                }\n               }\n             }\n        }\n      \n        \n        for(int i=0;i<n;i++){\n            reverse(ans[i].begin(),ans[i].end());\n        }\n        return ans;\n        \n    }\n};
[]