Mastercard Interview Question

Q4. Solve on paper: 2-Sum problem Rotate matrix by 90 degrees