Barclays interview question

Nothing special