Third Maximum Number Leetcode Solution Python