114. Count Occurrences of Each Unique Value

Easy

Return, for the 1-D array x, the number of times each unique value occurs, as a 1-D array of counts ordered by ascending value.

Implement solve(...)