No test case passed

My code is working perfectly for all manual test cases that i have tried , can you help me out as no test case passed it shows.

code : - https://ide.codingblocks.com/s/376978

try for test case:
ab
ba
correct answer: b