Problem in to queue or not to queue

To Queue or not to queue is one of the Question…

Ive been satisfyin all the conditions like the range of Q, string length is a +ve integer, c is lower case and modulo… Ive gone through all these conditions and performed almost all the test cases i perform… I’ve written the code in java its succesfully running but telling wrong code… I am sure with my code it matches the sample case given but still its appearing wrong code…

pls ask after contest is over

You can mail your query to feedback@codechef.com :slight_smile: