Pergunta de entrevista da empresa Meta

Coding questions regarding binary search trees and encoding a string