Oracle interview question

Any sorting logic we need to implement