Minimum Common Multiple Leetcode Javascript 30