1 test case showing run error

https://ide.codingblocks.com/s/140496 I am unable to debug my code

Hi Tanjul,
check your code for input: aaaa and aaab. Also, we need to reduce all duplicate consecutive characters to a single char. Your code is not working for that.