Periodic solutions of a second-order iterative differential equation