Pergunta de entrevista da empresa Amazon

Custom hackerrank challenge that's been adjusted to their own use case