Pregunta de entrevista de Copart

Problem solving, coding questions on ds and a puzzle.