There were 12 lights in a row in a room. Initially they were all switched off. Anil decided to play a game. He switched on all the lights. In the next turn he switched off every second light. Thrn, he switched on every third light and so on. He continued to play similarly for 12 turns. When was the second time that there were 6 lights switched on and 6 lights switched off.