MAXIMUM LENGTH BIOTONIC SUBARRAY(doubt)

wrong answer
https://ide.codingblocks.com/s/53392

Hey Shubham, Consider following test case
1
7
2 4 78 90 45 23 45
your code is giving output 5 but it should be 6.

https://ide.codingblocks.com/s/53596

can you please provide the correct code that passes test case ?