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?
- $RSPTQ$
- $SPRTQ$
- $QRSPT$
- $QTSPR$