Step 1: Recall the sonometer rule.
With frequency and length fixed, the number of loops $p$ satisfies $p\sqrt T=$ constant, so $p^2T$ is constant.
Step 2: Set up the two states.
First: $p_1=4$, $T_1=1$ kg. Second: $p_2=2$, $T_2=M$. So $p_1^2T_1=p_2^2T_2$.
Step 3: Solve for $M$.
\[ M=T_1\left(\frac{p_1}{p_2}\right)^2=1\cdot\left(\frac{4}{2}\right)^2=4 \]
\[ \boxed{4\text{ kg}} \]