Two Pointer Algorithm Python Template Example