Kindly, check below
1) As we can see, this is a piecewise function. So, let's plot that accordingly to each interval.
2) So, we can represent that this way:
Note that the open dot does not include the endpoint. And closed dots include the endpoints.
Thus, this is the answer.