Maximum length Biotonic Subarray

I had tried to code and debug but still the test case are not getting passed please review it.


Already I had posted to doubt but I don’t understand why the doubt is not been seen on the discussion forum. And also not solved by any TA.