Given word DHARAMSHALA
D−1,H−2,A−4,R−1,M−1,S−1,L−1
Required number of ways
= total number of ways when all A′s are seperated
− total number of ways when all A′s are seperated and H′s are together
=7!2!× 8C4−6!× 7C4=6![7×8!2!4!4!−7!4!3!]=5×6×7![7×82!4!−13!]=5×6×7![5648−16]=5⋅6⋅3!⋅4⋅5⋅6⋅7=4⋅52⋅63⋅7⇒a=1,b=2,c=3,d=1∴a+b+c+d=7