Wrong answer in String Window

https://hack.codingblocks.com/contests/c/512/1665
https://ide.codingblocks.com/s/40974

@Amritanshu Actually there are some logical errors with ur code
There are lot of test cases for which you will get wrong answers for example ->
qwerty asdfgh qazxsw qas
qas
So, first debug ur code with this case , if you still stuck then do ask me .