ALSTOM Interview Question

Hysteresis loop in C code and as well in Model