Is there a function of class defined on such that and exists and is finite?

I found a function:

which fits everything except it's only class (because DNE).

Any ideas? I'm sure such a function exists; I'm just not sure whether it can be expressed in terms of elementary functions.

This is not a homework problem; I was just thinking.