Answer
See graph and explanations.
Work Step by Step
If there is exactly one real zero, the cubic polynomial need to be in the form of $f(x)=p(x-q)^3$ where $p$ is a constant and $q$ is the zero.
Answer may vary, one example is $f(x)=(x-1)^3$ as shown in the figure.