Java challenges fundamentals and patterns

INCREASING DECREASING SEQUENCE
I am not able to understand the sample output .Please explain

Hi Lavish, basically in this question three cases are possible:-

  1. Sequence is first decreasing and then increasing.
    2)Sequence is strictly decreasing
    3)Sequence is strictly increasing

If the given sequence is one of the above sequence then print true else false