Barclays interview question

Questions are simple