I saw the thread, but I didn't reply specifically so that people could come up with ideas. The idea with the Thunder of the Titans and an inaccessible cage for Efreet was the first thing that came to mind.
Second option. Tazar, level 108, and a Potion of Life. With this setup, any number of any creatures will deal 1 damage. The Efreet should be able to handle it on its own. I haven't tested this in practice, but in theory, that's how it works. If you calculate how long this battle will actually take, the Efreet will most likely die of old age.
Third option. If this is allowed, the dragons should be in the city, but without towers. We use Müllich and artifacts to gain speed and push against the gates. We also take a cannon and a cart with us. The hero must have the skill to control the catapult so that it doesn't destroy the walls.
Could you provide more details about Tazar? I couldn't level up the hero to level 108. The "effective" maximum is level 88. After that, there is a sharp "increase" to level 0. And the experience became negative. Is this related to the value of experience (in the sense, the number of bits allocated to experience)? How can I reach level 108?