The great emperor Akbar once ruled India. He was well known for his intelligence. But along with that, he was known for the Nine Gems in his court. One of the nine gems was Birbal, a quick witted and extremely intelligent man. The stories of his wit were widely popular.
Once a king ruling in a distant land heard of Birbal. To check his wit, he sent an invitation and called him to visit his land. Akbar allowed Birbal to go and he took off on the journey.
Upon reaching that kings kingdom, he was welcomed with flowers. He was then escorted to the palace of the king. Upon entering the palace, Birbal found that there were six people sitting in front of him adorning the same robe. They were also lookalike and it was hard to judge who the real king was.
After a couple of minutes, Birbal approached one of them and bowed in front of him greeting him.
That was the real king. How did Birbal know who was the real king ?
A bridge is about to collapse. There are four people P, Q, R and S on one of the sides. Before the bridge collapses, they want to cross it. Now since the bridge is too weak, it can only stand the weight of two people at a time. Also, it is night time and nothing is visible. They have just one torch with them.
Now P takes one minute to cross the bridge, Q takes two minutes to cross, R takes five minutes to cross and S takes ten minutes to cross.
The bridge will collapse in seventeen minutes. How will they be able to cross the bridge before it collapses?