Barclays Interview Question

coding questions