TikTok interview question

It was leetcode and system design based