Question d’entretien chez TikTok

I don't remember, but pretty sure is leetcode problem