Least Common Multiple Leetcode Algorithm