solved factorial challenge