Which one is the answer to the question a,b,c or d?

Given:
The input and output values are represented in a table.
Option B is the final answer.