The number of ways of permuting the letters of the word DEVIL so that neither D is the first letter nor L is the last letter is:
numberofwaysofarranginglettersofwordDEVIL=5!=120numberofwaysofarrangementwhenDorLarefixed=4!+4!−1=47∴requiredpermutation=73