Dell Technologies Interview Question

matrix rotation by 90 degree