Bank of America Interview Question

Simple sorting problems like bubble sort