TikTok interview question

1 Leetcode Hard question, and ML Theory questions