rolling_doubles_function - by a CodeHS Student