Increasing or decreasing sequence

all test cases are not passed what’s the error pls resolve my problem :
here is a link to my code :https://ide.codingblocks.com/s/196819

Hey @souravkhan654
You’re considering only the cases when the sequence is completely increasing or completely decreasing and you’re not considering the case where the first part of the sequence is strictly decreasing and second is strictly increasing. You’ve to consider that type of sequence also. For eg:
7 5 3 1 2 4 6 8
Your code will give false for this sequence, but this should give try.