Getting TLE in max ken biotonic subarray

solution-https://ide.codingblocks.com/s/183511
why tle