<p>You want to build <code>n</code> new buildings in a city. The new buildings will be built in a line and are labeled from <code>1</code> to <code>n</code>.</p>
<p>However, there are city restrictions on the heights of the new buildings:</p>
<ul>
<li>The height of each building must be a non-negative integer.</li>
<li>The height of the first building <strong>must</strong> be <code>0</code>.</li>
<li>The height difference between any two adjacent buildings <strong>cannot exceed</strong><code>1</code>.</li>
</ul>
<p>Additionally, there are city restrictions on the maximum height of specific buildings. These restrictions are given as a 2D integer array <code>restrictions</code> where <code>restrictions[i] = [id<sub>i</sub>, maxHeight<sub>i</sub>]</code> indicates that building <code>id<sub>i</sub></code> must have a height <strong>less than or equal to</strong><code>maxHeight<sub>i</sub></code>.</p>
<p>It is guaranteed that each building will appear <strong>at most once</strong> in <code>restrictions</code>, and building <code>1</code> will <strong>not</strong> be in <code>restrictions</code>.</p>
<p>Return <em>the <strong>maximum possible height</strong> of the <strong>tallest</strong> building</em>.</p>