ServiceNow interview question

Rotate a matrix