TikTok interview question

Pizza cut problem from leetcode