Solution (source code)

= Solution

Deleting the first up-step and last down-step of a strictly positive walk of semilength $n$ and lowering the remainder by one gives a Dyck path of semilength $n-1$, bijectively. Hence $D_n=C_{n-1}$ and
$$
D(x)=\sum_{n\geq1}D_nx^n=xC(x).
$$