Five friends P, Q, R, S and T went camping. At night, they had to sleep in a row inside the tent. P, Q and T refused to sleep next to R since he snored loudly. P and S wanted to avoid
Q as he usually hugged people in sleep.
Assuming everyone was satisfied with the sleeping arrangements, what is the order in which they slept?
1
RSPTQ
2
SPRTQ
3
QRSPT
4
QTSPR