Pregunta de entrevista de Parity

Data structures and algorithms coding on a whiteboard.