Pregunta de entrevista de Tin Roof Software

The only question that was difficult was a data structure problem