Third Max Number Leetcode Javascript Problems