Xero interview question

Write a graph search algorithm