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

Answer: A. A
C is at one end, and since A is next to B but not C, A must be in the middle.