Octopus Energy interview question

Sort an array in O(1)