Pregunta de entrevista de Google

No particularly difficult questions.