A, B, C, D, and E are seated in a row. A is to the left of C but not next to D. E is sitting at one of the ends. Who is sitting next to D?

Answer: B. B
The arrangement can be E, A, B, D, C or E, C, B, D, A. In both cases, B is next to D.