why it is not accepting here?
Help me out in this problem
@shivammishra20121999
ur logic is correct.
it is giving wa because of order ,the ouput order is not matching with the expected order.
but in reality it matters 

try submitting on leetcode ,there it will work
@shivammishra20121999
actually team is already working on a feature to handle multiple valid solutions.