HERE Technologies interview question

please explain BFS and bubble sort