Pregunta de entrevista de Desquared

Algorithms involving array traversal and value manipulation.