AVTAR interview question

write a logic for Lift