Test case failing

pls see code

Hello @Amishi please wait i am checking your code:

Hello @Amishi see this is the corrected code:
https://ide.codingblocks.com/s/396281
if you have any doubt you can ask here:
Happy Learning!!

thankyou for the solution ! can you pls tell what was wrong in my code

@Amishi you have to print the possible outcomes in the sorted format.
in the code on which i have made corrections i think if you have checked i am printing the min of both first and then the max of both .
Happy Learning!!