Pergunta de entrevista da empresa Texas Instruments

Find the highest n-gram frequency word from the given string with n given