TikTok interview question

solve three or four leetcode questions