solution for "Two Sum"