Two Pointer Array Problems Leetcode Python Coding