TikTok interview question

Just one to two algorithm questions.