Joint density means a specification of the density of the random variables as they would appear together, i.e. $g(Y_1, Y_2, Y_3)$. Marginal density means the density of one such variable alone, $g(Y_3)$.
a) Let us use the standard transformation lemma.
Inverse mappings give
$$\begin{split}s_1(Y_1, Y_2, Y_3)&=X_1=Y_1\\
s_2(Y_1, Y_2, Y_3)&=X_2=Y_2-Y_1\\
s_3(Y_1, Y_2, Y_3)&=X_3=Y_3-Y_1-(Y_2-Y_1)=Y_3-Y_2\end{split}$$
The absolute value of the Jacobian is, expanding across the first row, $$|J(s_1(Y_1,Y_2,Y_3), s_2(Y_1,Y_2,Y_3), s_3(Y_1,Y_2,Y_3))|=\operatorname{abs}\left(\begin{vmatrix}1&0&0\\-1&1&0\\0&-1&1\end{vmatrix}\right)=\operatorname{abs}\left(1\begin{vmatrix}1&0\\-1&1\end{vmatrix}\right)=|1|=1$$
The joint density of $X_1, X_2, X_3$ is
$$f(X_1,X_2,X_3)=\lambda e^{-\lambda X_1}\lambda e^{-\lambda X_2}\lambda e^{-\lambda X_3}$$
So the joint density of $Y_1, Y_2, Y_3$ is given by plugging in the inverse mappings and multiplying by the absolute value of the Jacobian,
$$\begin{split}g(Y_1,Y_2,Y_3)&=f(s_1(Y_1,Y_2,Y_3), s_2(Y_1,Y_2,Y_3), s_3(Y_1,Y_2,Y_3))\cdot |J(s_1(Y_1,Y_2,Y_3),s_2(Y_1,Y_2,Y_3),s_3(Y_1,Y_2,Y_3))|\\
&=\lambda^3e^{-\lambda(Y_1+Y_2-Y_1+Y_3-Y_2)}\cdot 1\\
&=\lambda^3e^{-\lambda Y_3}\end{split}$$
For what values are valid, we find that exponential rv's are only positive so
$$Y_1>0,Y_2-Y_1>0,Y_3-Y_2>0\Rightarrow Y_3>Y_2>Y_1>0$$
b) As mentioned (+1), the sum of $n$ independent exponential random variables with the same rate is $\text{Gamma}(n, \lambda)$, so here it is $Y_3\sim\text{Gamma}(3, \lambda)$. The density is $g(y_3)=\frac{\lambda^3}{2}x^2e^{-\lambda y_3},y_3>0$.