Least Common Multiple Leetcode Problem 704