update solution for leetcode( two-sum)