31. Polarity-independent input

An electronic device operates from a 12 V DC supply, but the input polarity may be accidentally reversed.

Using exactly four diodes, design a circuit that maintains positive voltage across the provided R_LOAD = 1 kΩ, regardless of input polarity.

V_LOAD must remain at least 10 V for both +12 V and −12 V inputs.

Example test cases:

FIELD_INRequired V_LOADExpected I_LOAD
+12 V≥10 V10–12 mA
−12 V≥10 V10–12 mA
0 V≈0 V≈0 mA