agorithms elevator is solved