ASUS Interview Question

Write an algorithm which can rotate a matrix clockwise (90 degrees). Tell me about your past projects.