Pergunta de entrevista da empresa Amazon

Coding challenge question cannot be divulged