NovoInvent interview question

2-sum DSA problem from leetcode