Pergunta de entrevista da empresa Uber

in the screen round they asked the following coding question - You are given the dependencies between various software packages . Find the build order. Question was expected to be solved in 20 mins