A cubic function is known as a function whose graph is in the shape of a horizontal S.
The graph that meets these requirements is the graph D.