CGI interview question

Easy leetcode question: two sum