Answer: f(x) = |x|
Explanation:

Notice that the y-values are the positive of the x-values
x = -2, y = |-2| = 2
x = -1, y = |-1| = 1
x = 0, y = |0| = 0
x = 1, y = |1| = 1
x = 2, y = |2| = 2
The parent function is the absolute value function --> y =|x|