Design server allocation for multi-type nodes | Google Interview Question