If there is a character whose occurence is more than one in string2 then should the substring of string1 contain that character more than once as well?
String Window Doubt
@ap8730390,
Yes.
Since you have to find the minimum length substring of the string1 which contains all the characters of string2.
Example:
Input:
ankprittasad
ankitt
Expected Output:
ankpritt