Pregunta de entrevista de Amazon Web Services

OA test , solving a problem in code