I need help that why 2 test cases are failing even everything seems to be right?

Output is perfect still 2 test cases are failing please help

hi @numanshaikh25
u have to print smaller element first followed by larger element…
corrected code -->


It’s passing all test cases now…

Thanks alot! but here any such condition was not mentioned

check sample o/p… we can observe the same… and yes it was not specifically mentioned…

is there anything else or shall i mark it as resolved?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.