Can you please explain me the output

I am not able to understand the order of the elements in the output
question )https://hack.codingblocks.com/app/dcb/301

there is no such explanation for output
this is you have to find how you can get this output

if you do partition according to the logic used in quicksort you will get your ans

in quicksort there is only one pivot but now in this question you have to pivot

try to think
if you did not get it you can ask again
i will help you