Leetcode Counting Sort Java