Pregunta de entrevista de Meta

Coding questions regarding binary search trees and encoding a string