Getting TlE in 2 testcases

here is my code link

Minimum Window Substring| Leetcode 76 | Explanation and Code Walkthrough|…

refer to this, here I have explained all the corner cases, and the entire algo for this question. You would surely find it helpful