Let \( g: \mathbb{R} \to \mathbb{R} \) be a continuous function. Which one of the following is the solution of the differential equation
\[
\frac{d^2 y}{dx^2} + y = g(x) \quad \text{for} \quad x \in \mathbb{R},
\]
satisfying the conditions \( y(0) = 0 \), \( y'(0) = 1 \)?