Official solution
P : Ramu is intelligent
Q : Ramu is rich
R : Ramu is not honest
Given statement, "Ramu is intelligent and honest if and only if Ramu is not rich"
\[ = (P \wedge \sim R) \Leftrightarrow \, \sim Q\]
So, negation of the statement is
\[ \sim [(P \wedge \sim R) \Leftrightarrow \, \sim Q]\]
\[ = \sim [\{ \sim (P \wedge \sim R) \vee \, \sim Q\} \wedge \{ Q \vee (P \wedge \sim R)\} ]\]
\[ = ((P \wedge \sim R) \wedge Q) \vee ( \sim Q \wedge ( \sim P \vee R))\]