Barclays interview question

How to sort a list?