TikTok Interview Question

It was technical coding assessment.