Pregunta de entrevista de Nebius

Just algorithmic problems: implement, analyze, optimize. See leetcode.