Barclays interview question

Nothing too difficult