Pergunta de entrevista da empresa ThoughtExchange

Integer manipulation, use of dictionaries