Two Pointer Problems Leetcode Python Beginner