Based on the good posted solution the answer is to be the largest run of values between the two numbers (including the starting and ending numbers).

Note: I do NOT know of any C++ Compiler that...