In a cooking competition, five chefs A, B, C, D, and E prepared their dishes in the following sequence: A finished before D but after B. E finished after C but before D. What is the correct order of finishing?

A. B, A, C, E, D