Single Number Leetcode Solution In Python Iteration