On a nonlinear second order differential equation with oscillating coefficients