Solve a greedy algorithm problem optimized for resource allocation in a simulated multi-tenant build environment.