Step 1: Forces on an end charge
Repulsion from the far +q is $kq^2/4a^2$, attraction toward Q is $k q|Q|/a^2$.
Step 2: Balance
$|Q| = q/4$, and it must be negative to attract.
Step 3: Answer
$Q = -q/4$, option (D).
Final Answer:
Option (D).
\[ \boxed{-\frac{q}{4}} \]