Edge case 2 is failing

I tried all possible cases from my side but this case is failing again and again??

Hi, I think you may not be partitioning with respect to the first element correctly.
Can you try with this input:
3
1 2 3
1

Expected output is:
1 2 3

Do let me know if this helps, thanks.

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.