Leetcode 566. Reshape the Matrix