Solution to Schrodinger's equation for constant potentials

If $V$ is constant in some region, then we have

(Derivation)