UC San Diego Interview Question

Two sum in the leetcode