I do not understand question can you please explain?

i dont understand those conditions written.

Hey @premang
You need to find length of longest bitonic subarray.
a bitonic subarray is either completely increasing or completely decreasing or it’s first strictly increasing and then strictly decreasing.
1 2 3 4 5 3 2 89 91 23 3 1
there are many bitonic subarrays in this
1 2 3 4 5
1 2 3 4 5 3 2
2 89 91 23 3 2 1 0
2 89 91
5 3 2
91 23 3 2 1 0
and so on, but the longest bitonic subarray is
2 89 91 23 3 2 1 0 so ans is 8