Let $Y_{i}$ be IID with the property $P(Y_{i}=1)=\frac{1}{2}$ and $P(Y_{i}=-1)=\frac{1}{2}$ then if $T=\min\{n:K_n=-c$ or $K_n =c\}$ with $K_n=\sum_{i=1}^{n}Y_{i}$, is a stopping time. Find the Moment Generating Function of $T$.
I am pretty sure that the Optional Stopping Theorem is applicable here but I'm not entirely sure how to find the MGF for this particular situation.