It seems your problem is faulty somehow. Because the way it is stated is the only such mapping. Because if is non-constant then by the open mapping theorem has to be a mapped into an interior point of the range of but that is not possible since is a boundary point. Thus, we conclude that constant functions are the only such functions, thus, for all .