I am having difficulty understanding the Big-Oh rules. For example , here is a question :
Find example of functions ( which are not negative ) $d(n),f(n),e(n),g(n)$ such that $d(n)$ is $O(f(n))$ and $e(n)$ is $O(g(n))$, but $d(n)-e(n)$ is not $O(f(n)-g(n))$.
can someone please explain how to solve such a problem?

