Third Max Number Leetcode Javascript Solution