Barclays interview question

First round with technical questions