Design a circuit for given transfer characteristic
Finally I found the answer. Thanks @Transistor for the hints. Here is the circuit:







simulate this circuit &ndash; Schematic created using CircuitLab

I don't know whether there is a way to implement ideal diode in CircuitLab but characteristics of this circuit is same as the question's plot.