Xero Interview Question

Write a graph search algorithm