In diode D3 Case
The applied voltage at cathode terminal of the diode D3 is +1V & applied voltage at the anode terminal of the diode D3 is +5V therefore the potential difference is 4V. that's mean the anode terminal of the diode D3 is more positive as compare to the cathode terminal of the diode the D3 so it shall be in forward biased condition that is D3 is ON.
D1 & D2 are off.
In diode D2 & D1 case:
The potential difference across the diode D2 is 3 V. that's mean the anode terminal of the diode D2 is more positive in comparison of the cathode terminal of the diode D2 but potential difference is less than like in case of diode D3 , therefore diode D2 is in forward biased condition however this is not as much forward -biased like in the case of the diode D3 due to this we are letting the case of ideal diodes we let that the while diode D3 is fully forward biased and this shall pass more current than diode D2 & D1.
Because of the forward biasing of diode D3 this potential difference shall supply on output & this potential difference operate the diode D2 & D1 in reverse biased
D1 & D2 are off.
D3 is ON
So V=+1V
Also by using Ohm's Law
I = (5-1)/1k=4mA