Leetcode Counting Sort Calculator