Compute minimum-cost service cover | Airbnb Interview Question