If in a p-n junction, a square input signal of 10 V is applied, as shown,
then the output across RL will be:
For - ve applied voltage the diode is in reverse biased mode and hence there is no current output across
If + 5V is applied, diode is is in forward biased mode and hence offer no resistance.
Output voltage = 5V