Find the Most Frequently Occurring Character
You are given a string and integer K as arguments. Return the Kth most frequently occurring character.
Requirements
- Must return a single character string
Example #1
solve("aaabbc", 2)
> "b"
Example #2
solve("bbbbxyyzzz", 3)
> "y"