Four friends A, B, C, and D are sitting in a row. A is to the left of B but to the right of C. D is not at either end. Who is sitting in the middle?

Answer: A. A
A is in the middle because C is to the left of A, and D is not at either end, placing A in the middle position.