Two Pointer Algorithm Python Code Tester