prevRegularLane to 0 and prevExpressLane to expressCost.n, and for each stop i, calculate the cost for both lanes:
regularLaneCost is the cost to reach i via the regular lane.expressLaneCost is the cost to reach i via the express lane.regularLaneCost and expressLaneCost in the result array ans.prevRegularLane and prevExpressLane with the costs for the current stop.ans.