Two Pointer Problems Leetcode Solutions Python