recursive tree level sum

Linkedin int