String window challange

can anyone please …explain this ?

do you have problem in string window Q ?

yeah…i am not getting its editorial

start with ith index suppose on jth index we got all the characters of s2 in s1. Then start decreasing length by removing redundant character from left i.e from ith index.