Pregunta de entrevista de LinkedIn

Coding problem to using tree traversal and recursion