Leetcode Second Largest Number Python Dictionary Update