Consider these strings (quotes for clarity, they're not part of the strings).
{"apple", "pear", "cherry", "apple", "cherry", "pear", "apple", "banana"}
The array returned is {3,1,2,2} since the alphabetically
first word is "apple" which occurs 3 times; the second word
alphabetically is "banana" which occurs once, and the other
words each occur twice.
data will contain at most 50 elements
data will contain at most 50 characters,
all characters are lowercase.
data = {"apple", "pear", "cherry", "apple", "cherry", "pear", "apple", "banana"}
Returns: {3,1,2,2}
This is the example given above.
data = {"a","b","c",d"}
Returns {1,1,1,1}
data = {"a","a","a"}
Returns {3}
