Ibm Coding Questions Leetcode Javascript