You can answer the question using standard definitions of Taylor series expansions:
$\ln \left(1+x\right) = x - \dfrac{x^{2}}{2} + \dfrac{x^{3}}{3} - \ldots$ ,
$e^{x} = 1+x+\dfrac{x^{2}}{2!} + \ldots$
and
$\sin \left (x\right) = x - \dfrac{x^{3}}{3!} + \ldots$
Now the only expression we need to worry about expanding is the $\ln$ term
$$\ln \left(1+x+x^{2}\right) = \left(x+x^{2}\right) - \dfrac{\left(x+x^{2}\right)^{2}}{2} + \dfrac {\left(x+x^{2}\right)^{3}}{3} - \ldots$$
$$= x + x^{2} - \dfrac{x^{2}}{2}\left(1+x\right)^{2} + \dfrac{x^{3}}{3}\left(1+x\right)^{3} + \ldots$$
which after some expanding and collecting terms gives:
$$\ln \left(1+x+x^{2}\right) = x + \dfrac{1}{2}x^{2} - \dfrac {2}{3}x^{3} + \ldots$$
We substitute this series and the other series into the expression concerned:
$$\lim_{x\rightarrow 0} \dfrac {\ln \left(1+x+x^{2}\right) - e^{x} + 1}{x\sin \left (x\right)} = \lim_{x\rightarrow 0}\dfrac{x+\dfrac{1}{2}x^{2}-\dfrac{2}{3}x^{3}-\left(1+x+\dfrac{x^2}{2!}+\dfrac{x^{3}}{3!}+\ldots\right) + 1}{x\left(x-\dfrac{x^{3}}{6}+\ldots\right)}$$
$$ = \lim_{x\rightarrow 0} \dfrac{x+\dfrac{1}{2}x^{2}-\dfrac{2}{3}x^{3}- x - \dfrac{x^{2}}{2} - \dfrac{x^{3}}{6}-\ldots}{x^{2}-\dfrac{x^{4}}{6}+\ldots}$$
$$ = \lim_{x\rightarrow 0} \dfrac{- \dfrac{5}{6}x^{3} + \ldots}{x^{2}-\dfrac{x^{4}}{6}+\ldots}$$
Divide through by the $x^{2}$ in the fraction to get:
$$\lim_{x\rightarrow 0} \dfrac {\ln \left(1+x+x^{2}\right) - e^{x} + 1}{x\sin \left (x\right)} = \lim_{x\rightarrow 0} \dfrac{ - \dfrac{5}{6}x + \ldots}{1 - \dfrac{x^{2}}{6}+\ldots} = 0$$