You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Instead of iterating, This approach creates a map of strings to occurence.
* The map approach can be implemented from scratch by iterating and iterating the count, or leverage the existing groupBy provided by java8. I chose to do the later.