Bank of America interview question

Simple sorting problems like bubble sort