Problem with Three strings ICPC Gwalior pune onsite replay contest

Anyone i am not able to get what is wrong in this code .Basically i am not here for a solution but please just give me any test case which is output wrong …

Question link - CodeChef: Practical coding for everyone

My solution - CodeChef: Practical coding for everyone

thankyou…