An existence theorem for a nonlinear two-point boundary value problem