Least Common Multiple Leetcode Problems Python