Two Pointer Algorithm Python Code Runner