Reshape the Matrix

Reshape the Matrix - Coding Problem | K5kC