Barclays Interview Question

1 coding question and some HR question