Minimum Common Value Leetcode Contest Answers