SAP interview question

BFS. Complexity and how to use it