<p>You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once.</p>
<p>Return <em>the single element that appears only once</em>.</p>
<p>Your solution must run in <code>O(log n)</code> time and <code>O(1)</code> space.</p>