Can you please elaborate more on what your problem is? I don't quiet understand what you are asking.
From what I can tell, it seems like you are asking us to sort an array and then print out the corresponding indices that they were in the unsorted array. Is that correct?
Also, the image you posted is improperly constructed.