question requires for non-descending order output
sol of q078