Initial extension of spring, natural length? Recheck the question.

Yes bro sorry, initial extension in spring is x

So is it q_{max}= CBl x \sqrt{\frac{k}{m}}? Just equate q/C= blv And max velocity of AB occurs at mean position.