Solution for Two Sum.