Pregunta de entrevista de Amazon

I can't tell the specific Algorithm question.