Find a number in an array
<p>Is there a solution for the following question that has O(n) efficiency? </p>

<blockquote>
  <p>You need to find a cell in an array such that all of the numbers before it are lower than it, and all the numbers after it are higher than it. You should ignore first and last cells.</p>
</blockquote>

<p>For example, consider the following list:   </p>

<pre><code>1, 3, 2, 6, 5, 7, 9, 8, 10, 8, 11
</code></pre>

<p>In that case, the answer would be the number <code>7</code> at index <code>5</code>.</p>