Pregunta de entrevista de Gemalto

Write a code to implement the functionality of a lift.