Two Pointer Approach Leetcode Potd