Bank of America interview question

Asked about a simple sorting algorithm