Domanda di colloquio di Meta

Implement a tree. The second question was about moving average