Answer
See graph
Work Step by Step
$g(0) = 1 - 0$
$g(0) = 1 $
$g(1) = 1 - 1$
$g(1) = 0$
So the first part of the graph will be a straight line from ($0,1)$ to $(1,0)$
$g(1) = 2 - 1$
$g(1) = 1$
$g(2) = 2 - 2$
$g(2) = 0$
So the second part of the graph will be a straight line from (but not including) $(1,1)$ to $(2,0)$.