On a two-point boundary value problem for the second order ordinary differential equations with singularities