Google interview question

Leetcode's two sum problem. Easy.