Domanda di colloquio di TikTok

First round i got leetcode 211 Second round not too sure