The correct option is D that neither begins with I nor ends with B is 3720
Since, we have 7 letters
Total number of words without any restriction is 7!=5040
For the total number of words beginning with ′I′, fix I at the beginning rest can be arranged as 6!
Total words =6!
Similary, total number of words starting with I and ending with ′B′ is 5! (fixing I in the beginning and B in the end)
Total words, that neither begins with I nor ends with B=
Total number of words without any restriction - Total words that either begins with I or ends with B
=7!−(6!+6!−5!)=7!−2(6!)+5!=3720