When colleges require or recommend a certain number of years of one high school language, they mean that you need to complete the level mentioned, like third or fouth high school level, and not that you are required to take the language for each year in high school. If you complete the Spanish 3 course level, whether in high school or via a college course, you will be deemed to have met any requirement or recommendation of three years of high school language.