Barclays Interview Question

How to sort a list?