Output in different order does not match the expected output

For input dabad, the expected output is

dabad
d aba d
d a b a d

But, an output which contains these strings but is in the wrong order, such as
d a b a d
d aba d
dabad

does not match the expected output. Is it required to print the possible partitions in the given order only?

EDIT: I figured out how to print it in the required order, but I just want to know whether the question had such a requirement. :slightly_smiling_face:

No it isnt a requirement . You must have seen on running the code it still says that its a correct output irrespective of the order.

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.