Two Pointer Algorithm Python Code Examples