Solve three classic coding problems | TikTok Interview Question