10x Academy Interview Question

Two Sum Question from leetcode