Leetcode Counting Sort Time