Pregunta de entrevista de Gallagher

logic round was bit tough