Two Pointer Algorithm Python Code Explainer