Leetcode Two Pointer Approach Python Ideas