max_cycle_length() computes the maximum cycle length inclusive and between two integers based on the 3n + 1 problem (Collatz Problem - see MathWorld.com).
Yes, the instructor gave us all the I/O code. The only code block we had to write was max_cycle_length().
I typed in <Ctrl> + Z and got back a NumberFormatException. Previously, I tried typing in -1 and got back a NoSuchElementException. I also tried hitting <ENTER> and I got back a NoSuchElementException as well.
It seems no matter what I type in I get some sort of an exception.