one testcase failing.no mistake detected.
Hey @RULEREMPIRES try for this input 5 30 40 35 45 42 correct output is : 1 2 1 4 1 END