Question not understood

“He is supposed to find the minimum length substring of the string1 which contains all the characters of string2.”

Do spaces also count as characters of string2 ?

Hi

yes, spaces are also counted as characters of strinng2