C# solution to the Elevator Problem