https://www.tutorialcup.com/wp-content/uploads/2019/09/Maximum-element-in-an-array-which-is-increasing-and-then-decreasing-696x392.png