Domanda di colloquio di Cognizant

Write the code for Fan to work.