Pergunta de entrevista da empresa Desquared

Algorithms involving array traversal and value manipulation.