Smallest Common Multiple Leetcode Question