Two Pointer Technique Leetcode Contest Solution