Baker Hughes interview question

Sort a list without using any helper methods