Pergunta de entrevista da empresa Uber

In code specialization (which was frontend) they asked me a question in which you need to execute tasks given they have dependant tasks, like if A->B that means you have to execute B before A, so if we have A-> B,C B->C the order of execution can only be C-B-A. This requires very good knowledge of javascript, Specifically the handling of promises. You should not come to the interview without having done difficult javascript questions and know how to build UI's. But then again you could ace it as I did and still be rejected for bogus reasons.