In mathematics, the functions of the whole part are functions that take a real number and return a whole number, either by excess or by default.
Function floor (or ground), that to each real number assigns the nearest whole number by defect, that is to say, the greater whole number equal or smaller than that real number.
Let's evaluate the extremes of the interval
x = -3
g (-3) = floor (-3) -2 = -5
x = 3
g (3) = floor (3) -2 = 1
Therefore, the graph that best corresponds to the function in the given interval is the attached graph.
top right graph