Pergunta de entrevista da empresa Amazon

First was the numerical test