Sanket and strings 2

https://ide.geeksforgeeks.org/xLOZNEzXYS----this the code i have modified from the code u give solution to…
but only one test case is passing, while the code u people gave as solution ---- https://ide.geeksforgeeks.org/5buT2DHF3B--- is giving tle, so please tell me the corrected code;

hey @AbhishekAhlawat1102 just one changes
while (count > k) {
if (str.charAt(l) != c) {
//l++
count–;
}
l++;

		}