Its based on multinomial theorem which is as follows,
(a
1+a
2+.....+a
m)
n=

{n!(a
1n1)(a
2n2).......(a
mnm)}/(n
1!n
2!......n
m!)
Where n1+n2+n3+....+nm=n
In this problem,
a1=1 a2=x a3=y a4= -z n=9
So
(1+x+y-z)
9=

{9!(1
ax
by
c(-z)
d)}/(a!b!c!d!)
Where a+b+c+d=9
Here since co-efficient of x3y4z is required a=1 b=3 c=4 d=1
So the co-efficient of x
3y
4z is -9!/1!3!4!= -2*9C2*7C3
