Leetcode Counting Sort Complexity