<p>You would like to make dessert and are preparing to buy the ingredients. You have <code>n</code> ice cream base flavors and <code>m</code> types of toppings to choose from. You must follow these rules when making your dessert:</p>
<ul>
<li>There must be <strong>exactly one</strong> ice cream base.</li>
<li>You can add <strong>one or more</strong> types of topping or have no toppings at all.</li>
<li>There are <strong>at most two</strong> of <strong>each type</strong> of topping.</li>
</ul>
<p>You are given three inputs:</p>
<ul>
<li><code>baseCosts</code>, an integer array of length <code>n</code>, where each <code>baseCosts[i]</code> represents the price of the <code>i<sup>th</sup></code> ice cream base flavor.</li>
<li><code>toppingCosts</code>, an integer array of length <code>m</code>, where each <code>toppingCosts[i]</code> is the price of <strong>one</strong> of the <code>i<sup>th</sup></code> topping.</li>
<li><code>target</code>, an integer representing your target price for dessert.</li>
</ul>
<p>You want to make a dessert with a total cost as close to <code>target</code> as possible.</p>
<p>Return <em>the closest possible cost of the dessert to </em><code>target</code>. If there are multiple, return <em>the <strong>lower</strong> one.</em></p>