Microsoft interview question

Topological Sort on server scheduling or something similar