Leetcode Range Addition Leetcode Javascript Problems