Barclays Interview Question

ambiguous problem statement