Pregunta de entrevista de Oracle

A question about valid binary tree structure.