Google interview question

Two Sum Question - Leetcode