Minimum Common Multiple Leetcode Playground Java