Two Pointer Array Problems Leetcode Python Data