Chef and Left-Right. Wrong Answer

Can someone give a test case which i may be missing. My code is working on all the test case . For last end test case output is deleted. I am using std:string to store the string.

You can’t discuss test cases

//