You are given a mountain array where the values increase to a peak element and then decrease. Your task is to return the index of the peak element in O(log(n)) time complexity.
Click Run to execute sample tests.