Minimum Common Value Leetcode Javascript Practice Test