Two Sum 2nd

Although "You may assume that each input would have exactly one solution.",
we still consider of the bad situation(no solution).