Transpose the matrix, while also reversing every line:

```
class Solution:
# @param matrix, a list of lists of integers
# @return a list of lists of integers
def rotate(self, matrix):
return [[row[i] for row in matrix][::-1] for i in range(len(matrix))]
```