TikTok interview question

a close variant of Leetcode 239