DIY: Find Peak Element

Solve the interview question "Find Peak Element" in this lesson.

Problem statement

Given an integer array nums, find a peak element and return its index. If the array contains multiple peaks, return the index to any of the peaks.

A peak element is an element that is strictly greater ...