TikTok Interview Question

1 Leetcode Hard question, and ML Theory questions