Leetcode Two Pointer Approach Problems With Yahoo