Solution to Two Sum