Write a program that will tell you how many levels you'll travel in an elevator/lift. For now, let's pretend that this building has inifite stories above and below ground.
elevator(1,3)
# => "You'll go up 2 levels"
elevator(3,1)
# => "You'll go down 2 levels"
elevator(2,2)
# => "You are already on level 2"
- Add basement levels.
- Limit the levels in a building, and return "This level doesnt exist" if the level is invalid