Ramp interview question

class design, four questions stacked