Two Pointer Algorithm Python Code Checker