Least Common Multiple Leetcode Problem 34