TikTok interview question

Think of some edge cases