Leetcode questions solved in JavaScript