ignus: getting wrong answer

please help getting wa time and again,getting correct answer for many test cases

my code: http://www.codechef.com/viewsolution/3474620

problem link: http://www.codechef.com/IGNS2014/problems/IGNUS14B/

thanks in advance

give you a test data : aaabaaa

1 Like

thanks found my mistake, a silly error!