Pregunta de entrevista de State of Ohio

Must code an elevator function.