As aidenn0 said, this sounds like SimTower and its sequel Yoot Tower. There's a section of the manual[1] called "A Message From Yoot Saito, Creator of Sim Tower" that describes how he started creating it because he was curious about elevator programming.
[1] https://archive.org/details/SimTower_-_Manual_-_PC/page/n7/m...