Sample Run ( OUTPUT )
Enter a word: computer
The well-ordered words of length 3 that can be
formed from the letters in the word "computer" are:
cem ceo cep cer cet ceu cmo cmp
cmr cmt cmu cop cor cot cou cpr
cpt cpu crt cru ctu emo emp emr
emt emu eop eor eot eou epr ept
epu ert eru etu mop mor mot mou
mpr mpt mpu mrt mru mtu opr opt
opu ort oru otu prt pru ptu rtu
THE TOTAL NUMBER IS 56.