Veeve Inc interview question

An example Question: Sorting an array with O(1) memory complexion