The answer is D. A generator.
A generator is a device that converts mechanical energy into electrical energy. The mechanical energy forces the electric charges to move through the rotating wire.
The generator follows the concept of Faraday's law. When you rotate a conductor of electricity in a magnetic field, an electromagnetic field is induced. This creates a flow of charge.
The answer again is D. Generator.