Naw broooo...
TBH IDK what it means by "a" function... if the a is slanted.
But if it is not a variable like x or y, and it's just saying like is this a function, like for example saying like "Oh, this is a candybar" then that graph is a function, yes. And the range is from -1 to 2, domain is also -1 to 2. IDK how it wants you to type it in though.
It could be Range: (-1, 2) Domain: (-1, 2).
Or it could be Range: 3 and Domain: 3. The way you would get this form would be by doing 2-(-1). Since 2 is the biggest number and -1 is the smallest.
It might even want you to type Range: -1,0,1,2, and the same for Domain.
Honestly I don't know what more to say. It's gonna be something like that. but the important numbers to know is that the minimum for both domain and range is -1, and the max for both is 2.