ZS Associates interview question

Unstructured case was about programming elevators in a tall building