Recall that the general solution is $x(t)=A \cos{\sqrt{\lambda} t} + B \sin{\sqrt{\lambda} t}$. The condition $x'(0)=0$ meant that $B=0$. The condition $x'(\pi)=0$ means that $\lambda=k^2$ for any integer $k$. The corresponding eigenfunction is then the result of plugging in the corresponding eigenvalue: $x_k(t) = \cos{k t}$. Note we ignore the constant $A$ here for now; the coefficient of an eigenfunction will be determined elsewhere.