The sample input is :
5
1
2
3
4
5
What is the 5 at the top is presenting? Is it a number or the number of inputs?
The sample input is :
5
1
2
3
4
5
What is the 5 at the top is presenting? Is it a number or the number of inputs?
…
But if it is representing the number of inputs then how the sample output is true?
Because the question says that firstly the sequence must decrease and then increase and if 5 is the number of inputs then the sequence is strictly increasing and the sample output in this case must be be false?
So nos are
1 2 3 4 5
so 1 is decreasing and 2 3 4 5 are increasing , think of it like this 
Ok. Thank you. 