Simple Python solution
\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        cols = len(encodedText)//rows\n        \n        ans = ""\n     
```\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        cols = len(encodedText)//rows\n        \n        ans = ""\n        \n        # Iterate over each index of first row\n        for i in range(cols):\n            # Keep adding letters with an interval of (cols+1) (diagonally) till you reach the end of the matrix\n            for j in range(i, rows*cols, cols+1):\n                ans += encodedText[j]\n        \n        # Remove the trailing spaces\n        return ans.rstrip()\n```
[]