This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | a. - dir men des | |
| b. - dir men segiz | |
| c. - oš pen eki | |
| d. - vört pen ževi | |
| e. - ževi den elüx | |
| f. - segiz men elüx | |
| g. - ün oš pen ovız | |
| h. - ovız den eki | |
| i. - elüx eki men ün | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function printTree(stringTree) { | |
| function parseTree(stringTree) { | |
| if (stringTree[0] === '(' && stringTree[stringTree.length - 1] === ')') { | |
| const body = stringTree.slice(1, stringTree.length - 1); | |
| const splitterIndex = body.indexOf(' '); | |
| const header = body.slice(0, splitterIndex); | |
| const children = body.slice(splitterIndex + 1); |