Amazon interview question

Matrix Problem, rotating it 90 degrees