A function is a relation that assigns a single value in the range to each value in the domain. In other words, no x-values are repeated.
From the question, we can check the input and output tables. If the table of values is a function, there should be unique output values for each corresponding input value and vice-versa.
On analysis, it can be seen that only Table B satisfies this condition.
Hence, TABLE B is correct.