Barclays Interview Question

Find median of an array