Basic Algorithms For Leetcode Javascript Practice Exercises