the more years the money stays invested, the more interest it earns, so clearly, if the compounding cycle is the same for both options, and the rate of 7% is the same as well for both, then the one with more years will give more interest..
so depends on what "best" means in this context, but if it's more interest earned, 3 years gives more interest than 2 years of course.