American Express interview question

Conditional Statements and Sorting Algorithms