MINIMUM-DEPTH-OF-BINARY

solved with recurrence