<p>Given an integer array <code>nums</code>, return <em>an array</em><code>answer</code><em>such that</em><code>answer[i]</code><em>is equal to the product of all the elements of</em><code>nums</code><em>except</em><code>nums[i]</code>.</p>
<p>The product of any prefix or suffix of <code>nums</code> is <strong>guaranteed</strong> to fit in a <strong>32-bit</strong> integer.</p>
<p>You must write an algorithm that runs in <code>O(n)</code> time and without using the division operation.</p>
<p><strong>Follow up:</strong> Can you solve the problem in <code>O(1)</code> extra space complexity? (The output array <strong>does not</strong> count as extra space for space complexity analysis.)</p>