Your job is to measure 45 minutes if you have only two cords and matches to light the cords.
1. The two cords are twisted from various materials, so their different segments can burn at different rates.
2. Each cord burns from end to end in exactly one hour.
Once while in his court, King Akbar asked Birbal to write something on a wall that makes one sad when read in good times and makes one happy when read in sad times.
He took only a few moment and wrote something that fit the requirements. What did he write?