Barclays Interview Question

2 sum and 3 sum follow up