eBay Interview Question

implement BFS definition of precision, recall, and F1 score