Help me out in this problem


why it is not accepting here?

hello @shivammishra20121999
where u r submitting?
pls share its link with me

in coding block @aman212yadav

@shivammishra20121999
ur logic is correct.
it is giving wa because of order ,the ouput order is not matching with the expected order.

@aman212yadav it is wriiten in question order of output doesnot matter

but in reality it matters :sweat_smile::sweat_smile:

try submitting on leetcode ,there it will work

@aman212yadav
ok then i have to sort then print it

@shivammishra20121999
no,they havent specified anything, i cant comment what order they want

@aman212yadav okay bro please query against this question

@shivammishra20121999
actually team is already working on a feature to handle multiple valid solutions.

@aman212yadav ok btw thanks