** SPOILERS ** 2

For 2(d) there cannot be any such function.

More **SPOILERS** ?