Computation with the elements of an array | AskTheCode