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 - https://www.codechef.com/GWR18ROL/problems/THSTRS

My solution - https://www.codechef.com/viewsolution/22041066

thankyou…