Relevant Phrases of Annihilation - problem in submission

Hello Friends,

I have created a solution for Medium practice problem “Relevant Phrases of Annihilation”.

I have tested it and it is working fine for all the cases but it is showing as wrong answer.

It seems there is some problem in input and output format. This is my first problem so i would like to have some help here.

Solution is in Java language with username sgpandey123

Thanks,
Sanjay

I am having a similar issue with not knowing why my submission is failing. I put in a request on the problem page (CodeChef: Practical coding for everyone) to see if anyone could provide a failing test case.