Minimum Common Multiple Leetcode Solutions Python