Two Pointer Approach Leetcode Premium