Question d’entretien chez Pocket Gems

construct a trinary tree given string input