Barclays Interview Question

Wasn't difficult, was pretty straight forward