Question d’entretien chez Barclays

Two sum data structure and algorithm question