Simple Array Sum Leetcode Problem