There is a thousand answer to this problem.
Let's do the simplest one here.
f(x) or y = x - 1
f(x) or y = x + 1
f(x) or y = -x
Wait, would this count as a solution? : See the second attachment