Tell me the test cases that is not passed

Please tell me the test case that is not passed or its a printing mistake .

@1999atrijsharma
2 things
print each answer in a new line
and sort the answer lexographically

So for input “abc”
Output should be
acb
bac
bca
cab
cba