Leetcode Second Largest Number Python Dictionary Comprehension