Existence of three solutions for a nonautonomous two point boundary value problem