<p>You are standing at position <code>0</code> on an infinite number line. There is a destination at position <code>target</code>.</p>
<p>You can make some number of moves <code>numMoves</code> so that:</p>
<ul>
<li>On each move, you can either go left or right.</li>
<li>During the <code>i<sup>th</sup></code> move (starting from <code>i == 1</code> to <code>i == numMoves</code>), you take <code>i</code> steps in the chosen direction.</li>
</ul>
<p>Given the integer <code>target</code>, return <em>the <strong>minimum</strong> number of moves required (i.e., the minimum </em><code>numMoves</code><em>) to reach the destination</em>.</p>