String compression problem

https://ide.codingblocks.com/s/50016

sir my one test case is failing… wht more condition should i include in my code

Hey Yukti, your for loop is not including the last character of the string so update your for loop’s terminating condition as for(int i=0;i<len;i++).