Two Pointer Approach Leetcode Contest Solution