i really dont get what you want here, but based on what you said, you want this output but you get 1, 3, 4, 7, you need to keep track of the 'high' variable, try to count it step-by-step, you will be...