Func elevator

It simulates an elevator. It can be told to move to a top or bottom floor, and any number of additional floors specified by s. Can only move vertically.