Oracle interview question

How often do you code? (weird question) Give a brief structure of elevator algorithm.