in this,we are adding word one by one and while adding every character of a single word will be the child of the root then why are we considring the else condition in line 38?
and how does .count(ch) tells whether the following character is the child or not?