Qualcomm Interview Question

The two sum problem from Leetcode.