Bombardier interview question

write a pseudo code in c# for a cruise control system