Increasing Decreasing Sequence

Take the following as input.

A number (N)
Take N more numerical inputs
The N inputs for a sequence S = s1, s2, …, sN. Compute if it is possible to split sequence into two sequences -
s1 to si and si+1 to sN such that first sequence is strictly decreasing and second is strictly increasing. Print true/false as output.

I am unable to understand the problem statement plz help me with the hint,

for Ex if input is

5
5 4 3 12 13
it decrease till 3 and then start increasing
so output is true

5
1 2 3 4 5
it decrease till 1 and then increase
so output is true

Hint :
if once data start increasing then it should remain increasing
data can decrease only once.