CONCATPAL START 77 | Code fails on second task

My code fails on a test case and I am not able to figure out where… Can someone please help me find it?
Here is my code: CodeChef | Competitive Programming | Participate & Learn