Solve two-sum