Deloitte interview question

Two sum problem, a very popular leet code question