This is a bit tricky but we can take advantage of the question being multiple choice.
Notice that the graph is undefined at x=0,2.
Then looking at the answer choices only function C would work. This is because if x=0 or 2 then the denominator would be 0. And you cannot divide by 0.