Pregunta de entrevista de Amadeus

Questions involving algorithmic solutions.