Maximum length Biotonic Subarray can someone please tell me what i am doing wrong

Hello @sarthaksingh,

Correct your code following:
1
7
5 4 3 2 2 2 5
Expected Output:
6 (5 4 3 2 2 2)
Your Output:
2

Hope, this would help.