Pergunta de entrevista da empresa IBM

Java code for counting a specific word in a given string.