Lumen Interview Question

Simple Java DSA question, print count of each word appearance in a sentence.