Leetcode Javascript 30 Days Challenge