Harmonic oscillator with potential barriers-exact solutions and perturbative treatments