Omio interview question

Graph search algorithm