Pregunta de entrevista de Google

2 coding assignment that I cannot disclose