Answer:
Yes, it is a function
Explanation:
A function has only one output for each input. So a function can have the same output for different input, but one input can only have one output. In this case none of the inputs output more than one output, so it is a function.