Pregunta de entrevista de Amazon

Asked me to code and debug code