Eaton interview question

Write the code to implement a PID controller.