Easy
Given an array of positive integers arr, return the sum of all elements over all contiguous subarrays of odd length.
arr
Input: arr = [1,4,2,5,3] Output: 58
Input: arr = [1,2] Output: 3