Periodic Orbits of a One Dimensional Non Autonomous Hamiltonian System