Answer: A
Explanation: In ideal diode model the diode is considered as a perfect conductor in forward bias and perfect insulator in reverse bias. That is voltage drop at forward bias is zero and current through the diode at reverse bias is zero.
Since V$_{in}$ reverse biases the diode and V$_{B}$ forward biases the diode So total voltage across diode is V$_{in}$-V$_{B}$.