Minimum Common Multiple Leetcode Javascript Problems