Count Good Numbers Leetcode Problems Javascript Array Sort Numerically