To evaluate g(2), replace 2 in the equation that defines the function g
At this point, it is necessary to look at the graph, to find the value of f(1).
Once done it, we realize that this value doesn't exist, therefore neither does the value of g(2).
In conclusion, it is not possible to find g(2) because the value of f(1) doesn't exist.