LiveRamp interview question

Money cross the river problem