https://leetcode.com/problems/peak-index-in-a-mountain-array/
class Solution:
def peakIndexInMountainArray(self, A):
"""
:type A: List[int]
:rtype: int
"""
length = len(A)
for i in range(length-1):
if A[i] > A[i+1]:
return i