Step 1: Name the two forces
Let $F_Q$ be the force on $q$ due to $Q$ and $F_4$ the force due to $+4q$. Put $q$ at the origin and measure $x$ toward the other charges.
Step 2: Direction check
$F_4$ is repulsive, so it points in the $-x$ direction. For zero net force, $F_Q$ must point in $+x$ toward $Q$. That is attraction, so $Q$ is negative.
Step 3: Use Coulomb's law ratio
Since $F\propto \frac{q_1q_2}{r^2}$, equal forces give $\frac{|Q|}{(d/3)^2}=\frac{4q}{d^2}$.
Step 4: Solve
$|Q|=4q\cdot\frac{(d/3)^2}{d^2}=4q\cdot\frac{1}{9}=\frac{4q}{9}$. So $Q=-\frac{4q}{9}$, option (D).
Final Answer:
Equal and opposite forces need $Q=-\frac{4q}{9}$.
\[ \boxed{-\dfrac{4q}{9}} \]