Minimum Common Value Leetcode Javascript Questions