Sum of subarray elements (#717) - Azerbaijan Computing Olympiad