As you can see in the statement, the given function has 3 pieces:
In the first piece the function is constant, that is, it is equal to 1 for all values of x less than or equal to -1. Then the graph this piece is
On the other hand, in the third piece the function is also constant, that is, it is equal to 4 for all values of x greater than 2. Then the graph of this piece is
Finally, if we join the three pieces of the function in a single graph we obtain: