Here is the question from I.N. Herstein book.
Now point (a) is pretty straight forward. For part (b) I took inspiration from group $Q_8$ and defined the group as $<r,s|r^p=1,s^q=1, rqr^{-1}=q^2 >$. Is this correct?
Now question says there is only one such group but I can change $rqr^{-1}=q^2$ to $rqr^{-1}=q^3$ or any other power of $q$ except $1$. Am I right or I am missing something?