Confined One Dimensional Harmonic Oscillator as a Two-Mode System