Answer:
The graph is attached
Explanation:
Here the given function is

Now consider
y = -x
The graph is a line at 45° to the negative x axis.
But as x <0, so it shall be a line only in the second quadrant.
Also for f(x) = 1
It a horizontal line passing through y axis at 1.
But as x > 0, So we have the line only to the right of y axis.
The graph is attached.