I was interviewing with one of the startup company in San Fransisco, CA and had OOD discussion with design an elevator system.
YOE- 8 months
Position - SDE 1 level

Given interface -
Interface PhisicalElevator{
public void startMovingUp(Elevator e);
public void startMovingDown(Elevator e);
public boolean isApproachingFloor(Elevator e, int floor);
}

public class ElevatorEventHandler {
/implement this class by considering design of YOUR OWN elevator system. Interface "PhysicalElevator" is given to you by other team, use those methods as helping methods to your design./
}

Comments (4)