Thanks for raising above concerns... I assume, I framed the problem in bit hurry... here are the clarification to your concerns...
AIM is to minimize average waiting time...
Further assume, it's a residential building... all residents mostly travel between their floor and ground floor, so please ignore other in-between floor travels...
Hope this problem make more sense now...
Thanks for the clarification. If that's the case,
Spoiler for






