Two Pointer Algorithm Python Coursera