Solution to Factorial - Ranges Exercise