Amdocs interview question

Print a pattern, rotate a matrix