The graph shown in the diagram belongs to the family of absolute function value.
The parent function
has the graph (red graph in attached diagram).
Reflect this graph across the x-axis and translate 3 units up to get given graph (see blue graph in attached diagram). The function rule will be

Answer: correct choice is D.