Barclays interview question

All quite standard