TikTok interview question

there are 5 coding questions