Given, a line makes $90^{\circ}, 135^{\circ}$ and $45^{\circ}$ with the positive $x, y$ and $z$ axes respectively.
Hence, it's direction cosines are
$ < \cos 90^{\circ}, \cos 135^{\circ}, \cos 45^{\circ}>$
$=\left(0, \frac{-1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)$