This is a solar toy,called Mendocino motor.
3 solar panels, cleverly installed in different directions
Therefore, due to the difference in illumination, the magnitude of the generated current will be different
As a result, the torque generated by the solenoid coil is different
so it turns in the sun