Lowest Common Multiple Leetcode Python