Barclays interview question

Database queries, design, performance tuning