Pergunta de entrevista da empresa Nutanix

Find highest number of substring in a string in continuous mannar