Javascript Int Array Sum Leetcode 75