TikTok interview question

Data structures and algorithms, theoretical CS fundamentals