Minimum Common Multiple Leetcode Python