Increff interview question

Graph question without topological sorting technique