Pregunta de entrevista de Google

Asked me to solve algorithmic problems