Minimum Common Value Leetcode Two Pointers Problems