Barclays interview question

basic oops and database systems