Expedia Group interview question

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