Mystifly interview question

To solve the Two sum problem?