TikTok interview question

Leetcode 850. Image rotation. A hard one.