Deloitte Interview Question

Two sum problem, a very popular leet code question