Kinetic energy in SHM is given by: $K = \dfrac{1}{2}k(A^2 - x^2)$
Given $K = 4 \times 10^{-3}~\text{J}$, $x = 0.03~\text{m}$, $A = 0.05~\text{m}$
Substitute: $4 \times 10^{-3} = \dfrac{1}{2}k(0.0025 - 0.0009) = \dfrac{1}{2}k(0.0016)$
$\Rightarrow k = \dfrac{4 \times 10^{-3} \times 2}{0.0016} = 5~\text{N/m}$
Maximum force $F = kA = 5 \cdot 0.05 = 0.25~\text{N}$