Medium
An array nums is a mountain: it strictly increases up to a unique peak and then strictly decreases. Return the index of the peak element. Solve in O(log n) time.
Input: nums = [0,1,0] Output: 1
Input: nums = [0,2,1,0] Output: 1
Input: nums = [0,10,5,2] Output: 1