Nicks company employ n people now Nick need build tree hierarchy supervisorsurbodinate relation company employee exactly supervisor there m application write follow form employee ai ready supervisor employee bi extra cost ci the qualification qj employee know application follow true qaiqbi would help Nick calculate minimum cost hierarchy find impossible build