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

Answer: A. A
Since D is at one end and A is not at either end, A must be in the middle with B and C next to each other.