Continuous function/Neighborhood/Positive and negative/Exercise

Show that there exists a continuous function

such that obtains on every interval of the form with

positive as well as negative values.