Two Pointer Array Problems Leetcode Python Easy