Rotate matrix by 180 degrees | Leetcode 48