Casella Waste Systems Interview Question

Simple algorithm problem involving a supply chain.