Microsoft interview question

Execute n process and figure out dependency and completion time