Pregunta de entrevista de Amazon

Code debugging and Logical reasoning Coding