Let the total no. of months for which the account was held be n months.
Now,
The principle($$P_1$$) deposited in the first month is held in the account for a duration of $$\frac{n}{12}$$ years.
The principle($$P_2$$) deposited in the second month is held in the account for a duration of $$\frac{n-1}{12}$$ years.
The principle($$P_3$$) deposited in the third month is held in the account for a duration of $$\frac{n-2}{12}$$ years.
Similarly, we can say that the principle($$P_n$$) deposited in the nth month is held in the account for a duration of $$\frac{1}{12}$$ years.
Therefore, the total interest earned will be equal to
$$\frac{P_1\times\ r\times\ n}{1200}+\frac{P_2\times\ r\times\left(n-1\right)}{1200}+\frac{P_3\times\ r\times\left(n-2\right)}{1200}+.....+\frac{P_n\times\ r\times\ 1}{1200}$$
Since the principle deposited every month is equal so $$P_1=P_2=P_3=....=P_n=600$$
So, Total Interest earned becomes
$$\frac{600\times\ r}{1200}\left\{\left(\left(n\right)+\left(n-1\right)+\left(n-2\right)+.....+1\right)\right\}$$
$$=\frac{600\times\ 12}{1200}\left\{\frac{n\left(n+1\right)}{2}\right\}=\frac{12n^2+12n}{4}$$
Therefore, total maturity value = $$\left(600\times\ n\right)+\left(\frac{12n^2+12n}{4}\right)=16200$$
or, $$n^2+201n-5400=0$$
or, $$\left(n+225\right)\left(n-24\right)=0$$
As no. of months cannot be negative so n=24 months