Solution to Character Count - Ranges Exercise