Simple & Easy Solution using Sliding window
Code\npython3 []\nclass Solution:\n    def rotateTheBox(self, box: List[List[str]]) -> List[List[str]]:\n        rows, cols = len(box), len(box[0])\n        ans
# Code\n```python3 []\nclass Solution:\n    def rotateTheBox(self, box: List[List[str]]) -> List[List[str]]:\n        rows, cols = len(box), len(box[0])\n        ans = list(box)\n\n        for i, row in enumerate(box):\n            start = 0\n            for j, value in enumerate(row):\n                if value != \'#\':\n                    start = j + 1\n                else:\n                    if j + 1 < cols and box[i][j + 1] == \'.\':\n                        ans[i][start], ans[i][j + 1] = \'.\', \'#\'\n                        start += 1\n\n        return [[ans[i][j] for i in range(rows - 1, -1, -1)] for j in range(cols)]\n```
['Array', 'Two Pointers', 'Matrix', 'Python3']