Correct option is B
Given:
- J, H, Q, S, X, L and I are sitting in a straight row facing south, but not necessarily in the above order.
- Two persons sit between J and Q.
- X sits between J and S and sits second to the right of H.
- L sits second to the left of Q and sits immediate to the left of I.
- Q and H are sitting at the extreme ends of the straight row.
According to given information linear seating arrangement will be-

So, H sits third to the left of J.
Thus, the correct answer is (b).