Pregunta de entrevista de Amazon

coding was easy but behavioral was difficult