code: def findInMountainArray(
      self, target: int, arr: "MountainArray"
  ) -> int:
      peak = self.getPeak(arr)
      first = self.binary_search(arr, 0, peak - 1, target)
      if first != -1:
          return first
      second = self.binary_search_rev(
          arr, peak, arr.length() - 1, target
      )
      return second
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.findInMountainArray(target, arr) and returns: second, first