Bank of America Interview Question

Asked about a simple sorting algorithm