Test Interview Question

Two sum from leetcode platform.