Pregunta de entrevista de Cruise

LeetCode algorithms and puzzles, mostly irrelevant for the role