Leetcode Basic Algorithms Math