Single Number Leetcode Solution Python