Dictionary Order Larger all test Cases failed

Why my all test cases failed but provide custom input gives right answer?

@shardul15,
Input:
bac

Your output:
bca
cba
cab

Correct Output:
bca
cab
cba

The output strings must be sorted. as mentioned in the question.

@sanchit.bansal06 thanks bhai