Basic Algorithms For Leetcode Solutions