1

This should be a fairly simple challenge.
For an array of numbers, generate an array where for every element all neighbouring elements are added to itself, and return the sum of that array.
Here is the transformation which occurs on the input array [1,2,3,4,5]
[1,2,3,4,5] => [1+2, 2+1+3, 3+2+4...