Given f(x)=x2−3x−4 and g(x)=|x+3|−2 , which value is a solution to the equation f(x)=g(x) ?
A −4
B −3
C −1
D 4