fix Two Sum bug

According to the question description, index1 must be less than index2.

The original solution failed to pass the below case.

Input:	[3,2,4], 6
Output:	1, 1
Expected:	2, 3