Two Pointer Algorithm Python Coder