The number of elements that are greater than the previous one
The number of elements that are greater than the previous one. A sequence consists of integer numbers and ends with the number 0. Determine how many elements in this sequence are greater than their immediate predecessor. Test Case Input (Sequence) Expected Output 1 1 2 3 0 2 2 4 2 5 0 1 3 …