TikTok interview question

Leetcode medium (matrix rotation). Calculation on pi.