Maximum Length Biotonic Array


What is my mistake?


There was a small mistake, check the comments in above code.