Composed Functions

    Input and Output

    Constructing a tree