Two point boundary value problems for the Sturm-Liouville equation with highly discontinuous nonlinearities