You've been sent to prison, but the prisons where you are from are very clever. They do not just lock you up, they put you in a room with 2 doors.
Door A is guarded by an evil dragon that will kill anyone who leaves.
Door B is simply a hallway, with an odd ceiling, it's the strongest magnifying glass on earth! What's so bad about this? It magnifies the sun so strong it'll burn you to a crisp the second you leave.
They also went through extra measures to make sure you don't live through 24 hours, the back wall is slowly enclosing on you. There is no open ceiling in the prison room, so don't try wall jumping Mario style once the wall encloses a bit.
How can you escape?