Domanda di colloquio di Deloitte

Two sum problem, a very popular leet code question