Ramp Interview Question

class design, four questions stacked