Maximum Non Adjacent Sum Leetcode Javascript 30