I can't figure out the logic to get the answer to 3 and still have the loop output 1 if all the numbers are non-sequential.