Qualcomm interview question

Two Sum and some other leetcode