Javascript Questions On Leetcode 150