TikTok Interview Question

LC hard question - cannot disclose