Rolta interview question

Design an automated lift system algorithm