Barclays interview question

Questions of CS concepts