Oracle interview question

Optimise code to O(1) complexity.Sorting algorithms