Pregunta de entrevista de Google

Completely technical and problem solving