Increff Interview Question

Graph question without topological sorting technique