TikTok interview question

graphs, arrays, object design, f