Question d’entretien chez Bloomberg

how would you implement BFS