Contentstack Interview Question

Sum of adjacent array elements