Add solution to two-sum of leetcode