Each of A, B, C, D and E has an exam on a different day of a week, starting from Monday and ending on Friday of the same week. C has the exam on Thursday. Only one person has the exam between B and A. B has the exam on the day immediately before D. Who has the exam on Wednesday ?
AE
BA
CD
DB