Given stringsSandT, find the minimum (contiguous) substringWofS, so thatTis a subsequence ofW.
If there is no such window inSthat covers all characters inT, return the empty string"". If there are multiple such minimum-length windows, return the one with the left-most starting index.
Example 1:
Input:
S = "abcdebdde", T = "bde"
Output: "bcde"
Explanation:
"bcde" is the answer because it occurs before "bdde" which has the same length.
"deb" is not a smaller window because the elements of T in the window must occur in order.
Note:
All the strings in the input will only contain lowercase letters. The length ofSwill be in the range[1, 20000].