Question d’entretien chez Goodnotes

A string manipulation problem and generate random word under certain rules