Pregunta de entrevista de Adobe

Puzzle asked most difficult