Not able to solve completely this quiestion using same approach. 76. Minimum Window Substring


what is the problem in this code some test cases get failed when I solve the same question using same approach on leetcode.