ASML interview question

How to write a AD controller