Pergunta de entrevista da empresa Rivian

BFS, How many subtrees in a graph (something of that sort)