Python Beginner Solution - Beats 82%
```\ndef rotate(nums, r, c):\n    flat_list = []\n    matrix = []\n\n    for sublist in nums:\n        for item in sublist:\n            flat_list.append(item)\
```\ndef rotate(nums, r, c):\n    flat_list = []\n    matrix = []\n\n    for sublist in nums:\n        for item in sublist:\n            flat_list.append(item)\n\n    if len(flat_list) != r * c:\n        return nums\n    else:\n        for i in range(0,len(flat_list),c):\n            matrix.append(flat_list[i:i+c])\n        return matrix
['Python', 'Python3']