Algo++ Doubt Maximum length Biotonic Subarray


https://online.codingblocks.com/player/34497/content/13211/5303

My Solution gives wrong answer to the only test case present.
But the given sample case gives the correct answer.

hey @A17CRX0055, yor code is giving wrong answer for testcases like these
1
4
10 20 30 40
your code’s output:
8
Correct output
4

Please dry run your code on paper for this testcase, You will able to catch your mistake