X interview question

topology sort