Max length bitonic

plz tell y am i getting this wrong

hey @ashigupta.gupta570 can you please explain your logic?