Four persons: P, Q, R and S are in police custody and one of them has committed a crime. They confess as follows:
A. Person P : Q did it.
B. Person Q : S did it.
C. Person R : I did not do it.
D. Person S : Q lied.
If exactly one of the statements is false, which of the following is the guilty person.
1
P
2
Q
3
R
4
S