Not Able To Solve Leetcode Javascript Questions For Technical Interview