Java simple Straight Forward Approach
\n    public char[][] rotateTheBox(char[][] box) {\n        char res[][]=new char[box[0].length][box.length];\n        int k=res[0].length-1;\n        for(int i
```\n    public char[][] rotateTheBox(char[][] box) {\n        char res[][]=new char[box[0].length][box.length];\n        int k=res[0].length-1;\n        for(int i=0;i<box.length;i++){\n            for(int j=0;j<box[0].length;j++){\n                res[j][k]=box[i][j];\n            }\n            k--;\n        }\n        \n        for(int i=0;i<res[0].length;i++){\n            for(int j=res.length-1;j>=0;j--){\n                if(res[j][i]==\'#\'){\n                    int downFall=j;\n                    while(downFall+1<res.length && res[downFall+1][i]==\'.\'){     \n                        res[downFall+1][i]=\'#\';\n                        res[downFall][i]=\'.\';\n                        downFall++;   \n                    }\n                }\n            }\n        }\n        return res;\n    }\n}\n```
['Java']