Pregunta de entrevista de TikTok

Leetcode, and space and time complexity.