Third Max Number Leetcode Python