Slack Interview Question

How to rotate matrix clockwise