Pregunta de entrevista de Human Resocia

Longest consecutive substring. Have to satisfy time complexity even when the string length is higher than 100k