Elliptic solution for two nonlinear interacting oscillators