Explanation:
you don't show us all possible answer options.
none of the visible graphs are correct.
just look at x=0. g(0) = -0/2 + 2 = 2
so, the correct graph has to go through (0, 2). and the 3 segments connect at the interval end points
(-2, 3) and (2, 1).
so, please pick the correct answer option based on this information.