E(X^r)=(r+1)!* (2^r). we have to find MGF of random variable X.