Domanda di colloquio di StackAdapt

Galton Watson Branching Process and DP Programming question