MixerBox Interview Question

Substring question Using window can solve this question