Pregunta de entrevista de MixerBox

Substring question Using window can solve this question