It took some unknown time $T$ to fall the entire distance $h$ from the top of the tower.
In the last $1$ second the stone fell $\frac59$ of the height of the tower,
that is, the distance it fell was $\frac59h.$
So in the first $T - 1$ seconds it had to fall $\frac49h.$
I look at this and say to myself, the distance fallen is proportional to the square of the time, so
$$ (T-1)^2 = \frac 49 T^2. \tag1 $$
Then I take the square root of both sides. Normally when doing this we have to introduce a $\pm$ sign, but the statement of the problem implies that $T - 1 > 0$ (and therefore $T > 0$), so we only have the positive square root on each side.
I get a linear equation and easily find $T.$
But you might want to be more careful about deriving Equation $(1)$.
I prefer to keep $g$ in the formulas until I need to use its numeric value.
In this case we never need its numeric value, so we never have to make that substitution. The equation for the first $T-1$ seconds is
$$ \frac49 h = \frac g2 (T-1)^2. \tag2$$
For the entire $T$ seconds we have
$$ h = \frac g2 T^2. \tag3$$
Two equations in two unknowns, but very easy to get rid of the unknown $h$ because we can just use Equation $(3)$ as the substitution for $h$ in Equation $(2)$:
$$ \frac49 \left(\frac g2 T^2\right) = \frac g2 (T-1)^2. $$
Cancel the factor of $\frac g2$ on both sides and you get Equation $(1)$.