TikTok Interview Question

3 leetcode hard, difficult and out of scope