Pregunta de entrevista de TikTok

One leetcode medium difficulty question