Two Pointer Problems Leetcode Python Coding