Answer
The red light exits first.
Work Step by Step
Blue/violet light travels more slowly in glass, compared to red light, so the red light will emerge first (though in practice, due to instrumental limitations, the race will probably be too close to call).
This is discussed on page 529.