Five friends, P, Q, R, S, and T, are seated in a row. P is not at either end. Q is sitting to the left of R. S is sitting at one of the ends. Who is sitting in the middle?

Answer: B. Q
Since S is at one end and P is not at either end, the only arrangement that fits is S at one end, Q to the left of R, and P in the middle.