Create Two Sum 

Given an array of integers, find two numbers such that they add up to a specific target number.

The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not zero-based.

You may assume that each input would have exactly one solution.

Input: numbers={2, 7, 11, 15}, target=9
Output: index1=1, index2=2

将numbers中的data和index加入到map中，可以加速查找
在每次加入之前首先看是否可以在map中找到另一个可以匹配的数
如果可以就将结果加入result中
如果不可以先查看这个data是否已经加入到map中
如果没有就将这个data加入到map中
依次处理直到找到答案