Barclays Interview Question

2 rounds of numerical tests