Microsoft interview question

On Site- describe how you would program and elevator system