Barclays interview question

Basic questions.