THE PROBLEM Easy
Two Sum
Given a list of integers and a target, return the indices of the two numbers that add up to the target.
You may assume there is exactly one pair. Each element can be used only once.
Example
nums = [2, 7, 11, 15]
target = 9
output = [0, 1]2 + 7 = 9