Peak Index in a Mountain Array — Interactive Visualizer
Binary search the turning point where the increasing slope switches into a decreasing slope.