$C_n=-C_{n-1}+2$ where $C_0=0$
$C_n=D_n+d$ and $D_n=-D_{n-1}$
Now
$(C_n=) D_n+d=-(D_{n-1}+d)+2 \iff D_n=-D_{n-1}-d-d+2\iff D_n=-D_{n-1}-2d+2$
Setting $-2d+2=0\iff d=1$
Setting $n=0$
$0=D_0+1$ So $D_0=-1$
$C_n=D_n+1=-1(-1)^n+1$
Is the way is correct? is the answer is correct?
The way contains interesting ideas. Let us consider it in details.
At first, the task is not homogenius, but the substitution $$D_n = C_n-1\tag1$$ changes it to the homogenius form $$D_n = - D_{n-1}\tag2.$$ Let $D_0=d,$ then $$D_{2n}=d,\quad D_{2n-1}= -d.\tag3.$$ The next step is returning to the issue variables: $$\boxed{C_{2n}=d+1,\quad C_{2n-1}= -d+1}.$$