Pregunta de entrevista de Google

Not too difficult online assessment.