Pergunta de entrevista da empresa Meta

A binary tree traversal question in the leetcode top 50 for Meta.