Step-by-step explanation:
The function is given below as

The set of domains is given below as

Step 1:
Put x=-1

Step 2:
Put x=0

Step 3:
Put x=1

Step 4:
Put x=2

Hence,
The range of g(x) using set notation will be

Hence,
The graph of g(x) is given below as