Angular Sum Of Array Leetcode Question