Maximum length biotonic subarray

i’ve tried this with brute force approch using three loops …on putting the given sample input the answer is correct like 5 and 4 but i m getting 0 score as no testcase is passed…help me with this please

Pls share your code by saving on ide so that I could check it…

i think there might some time complexity issue because i;ve tried so many testcases and all get passed…

https://ide.codingblocks.com/s/160978 … This is my code

https://ide.codingblocks.com/s/160978 mam this is my code please check it