Pergunta de entrevista da empresa Exper Labs

They asked me to create a tree and give me a custom iteration pattern and asked me to write recursive code for that.