Let
According to the question, $A$ is an orthogonal matrix, and thus its rows (or columns) form an orthonormal set. So, the dot product of each row with itself is 1, and the dot product of different rows is 0.
From the dot product of the first row with itself - $0^2 + (2q)^2 + r^2 = 4q^2 + r^2 = 1$.
From the dot product of the second row with itself - $p^2 + q^2 + r^2 = 1$.
From the dot product of the first and second rows- $0 \cdot p + 2q \cdot q + r \cdot (-r) = 2q^2 - r^2 = 0$,
So $r^2 = 2q^2$.
Substituting into the first equation, $4q^2 + 2q^2 = 6q^2 = 1 \Rightarrow q^2 = \frac{1}{6} \Rightarrow r^2 = \frac{1}{3}$.
Now, using the second equation: $p^2 + \frac{1}{6} + \frac{1}{3} = 1 \Rightarrow p^2 + \frac{1}{2} = 1 \Rightarrow p^2 = \frac{1}{2} \Rightarrow |p| = \frac{1}{\sqrt{2}}$.