Answer: Choice B
Choice B shows each input going to exactly one output. Therefore it is a function.
Choices A, C, and D have one input leading to more than one output. For example, the input -5 in choice C goes to more than one output (-2 and 3). This is why choices A, C, and D are not functions.