Basic Algorithms For Leetcode Javascript Practice