Let $f:\mathbb{R}\to\mathbb{R}$ be a function. Suppose:
$$\left|\sum_{k=1}^{n}3^k(f(x+ky)-f(x-ky))\right|\leqslant 1\quad\forall n\in\mathbb{N}\quad\forall x,y\in\mathbb{R}$$
Show that $f$ is a constant function.
I don't even know where to start and what is the possible approach. Any hints?