Solution of the Schrödinger Equation with a Hamiltonian Periodic in Time