Increasing Decreasing Sequence

What should be the output for this -->
5
1
2
4
4
5

false
since in the q its given

strictly decreasing and second is strictly increasing.