Indeed Interview Question

String parsing and finding mot common word in a space-delimited string