Amazon Interview Question

Ordering a set of numbers