Third Maximum Element Leetcode Python Coding