Pergunta de entrevista da empresa Uber

Leetcode medium graph problem related to finding correct order of platforms