TikTok interview question

It was technical coding assessment.