Mystifly Interview Question

To solve the Two sum problem?