1stDibs.com Interview Question

Optimize a function with renounce