Pregunta de entrevista de Light

Based on data structures and algorithms.