Pergunta de entrevista da empresa HubSpot

Algorithm to split word in n sections, and display the section most repeated