Ramp Interview Question

It was a DFS style question.