Construction of a Finite-Difference Scheme that Exactly Conserves Energy for a Mixed Parity Oscillator