X Interview Question

topology sort