two solutions for Two Sum