Ramp interview question

It was a DFS style question.