Solutionunvalidated
After writing `mat = ans`, reassign `ans` to a new nested array. — second rotation. Outcome: reassign `ans` to a new nested array.
c2c096f5-a7bc-4c8d-a003-6b1497216cc4
After writing mat = ans, reassign ans to a new nested array. — second rotation. Outcome: reassign ans to a new nested array.