$$(D^2 + 2i + 1)y=0$$
here's what I've done so far, obtained auxiliary equation:
$$m^2+2im+1=0$$
Roots:
$$m_1=i(\sqrt2-1)\\m_2=-i(1+\sqrt2)$$
Which should give the general solution as:
$$y=c_1e^{i(\sqrt2-1)}+c_2e^{-i(1+\sqrt2)} $$
Which is no way similar to the expected answer!
Expected answer $$c_1e^{2x}+e^{-x}\{c_2\cos(x\sqrt3)+c_3\sin(x\sqrt3)\}$$
$$(D^2 + 2i + 1)y=0 \implies y''+( 2i + 1)y=0$$ You did a little mistake here $$m^2+2im+1=0$$ The characteristic polynomial should be $$m^2+(2i+1)=0$$ You can find the correct answer now