Barclays interview question

case