Expedia Group Interview Question

Cannot give explicit details. Question involved finding cycles in a directed graph