Prisoners got freed

100 prisoners are stuck in the prison in solitary cells. The warden of the prison got bored one day and offered them a challenge. He will put one prisoner per day, selected at random (a prisoner can be selected more than once), into a special room with a light bulb and a switch which controls the bulb. No other prisoners can see or control the light bulb. The prisoner in the special room can either turn on the bulb, turn off the bulb or do nothing. On any day, the prisoners can stop this process and say "Every prisoner has been in the special room at least once". If that happens to be true, all the prisoners will be set free. If it is false, then all the prisoners will be executed. The prisoners are given some time to discuss and figure out a solution. How do they ensure they all go free?




Similar Riddles

A Car driver was heading down a street in Washington. He went right past a stop sign without stopping, he turned left where there was a 'no left turn' sign and he went the wrong way on a one-way street. Then he went on the right side of the road past a cop car. Still, he didn't break any traffic laws. Why not?

Car Driver Going Wrong

Asked by Neha on 03 Mar 2021


what's the probability of getting a king or a queen from a pack of 52 cards?

Asked by Neha on 27 Sep 2024

Why is Saturday stronger than Monday?

Asked by Neha on 13 Feb 2023


What can go up a chimney down, but can’t go down a chimney up?

Asked by Neha on 12 Jul 2025

John and his wife were living in a rural place. On a particular day, John's wife fell ill and he called the local doctor. When the doctor picked up, he said, "Doctor, my wife is ill. She might have appendicitis."

"This can't be possible! I took out her appendix two years ago myself," the doctor explained.

When diagnosed, John's wife was found to have appendicitis. How can this be possible?

Asked by Neha on 19 Jun 2024

This was asked in an interview with Coa-Cola.

The interviewer has given me 100 marbles(50 white and 50 black) and two empty boxes.
He then told me that he will leave the room and i need to place all the marbles in two boxes.

And When he come back, he will draw a marble from any of the two box and if the marble is white I will be hired.

Also
* No box can be empty.
* All 100 marbles must be placed in one of the two boxes.

So what should I have done?

Asked by Neha on 29 Nov 2024


What does below science rebus mean?

Ag Ag Ag
Ag SPOON Ag
Ag Ag Ag

Asked by Neha on 11 Oct 2023

In the picture given below, can you find out which digit will take place of the question mark?

Replace the Question Mark

Asked by Neha on 10 Nov 2025

What can run but never walks, has a mouth but never talks, has a head but never weeps, has a bed but never sleeps?

Asked by Neha on 17 Mar 2025


How can you make a TV, a bed, a dog, and a car liquid?

Asked by Neha on 27 Mar 2024

Hot Articles

Amazing Facts

Rubik’s Cube

The inventor of the Rubik’s Cube didn’t realize he’d built a puzzle until he scrambled it the first time and tried to restore it.