It can be done, but only if at least one guard gives an answer of “I don’t know” (necessarily a lie). Indeed, any of these combinations leads to a solution:
| Left guard | Right guard |
|---|---|
| It leads to the exit. | I don’t know. |
| I don’t know. | It leads to the dungeon. |
| I don’t know. | I don’t know. |