text: ## Find peak element in an array
  
  class Solution:
      def findPeakElement(self, nums: List[int]) -> int:
          
          ## Iterative Binary Search
          l, r = 0, len(nums)-1
          
          while l<r:
              
              mid = (l+r)//2
              if nums[mid] > nums[mid+1]:
                  r = mid
              else:
                  l = mid+1
                  
          return l
  