Function/Finitely many values/No staircase function/Exercise

Give an example of a function which assumes only finitely many values, but is not a staircase function.