Barclays interview question

Good knowledge of data structures required.