Minimum Common Multiple Leetcode Javascript Interview