Although William didn't know the Fiendfyre and couldn't control the Fiendfyre, since this was a trial, Dumbledore must have left a key to pass it.

The group walked to the table, and Hermione grabbed a roll of parchment lying next to the bottles. She read:

Danger lies before you, while safety lies behind. Two among us can help you find your way. Drink them, and one will lead you forward, while the other will send you back to where you came from.

Two of these contain nettle wine. Three are killers, waiting in line. Choose now, unless you wish to be delayed here forever.

We also provide four clues to help you choose: First, no matter how cunningly the poison hides, they all stand to the left of the nettle wine;

Second, the contents of the bottles at the left and right ends are different. If you wish to move forward, neither will be of use to you; third, you will find that the bottles are of different sizes.

Neither Giant nor dwarf hides the reaper; fourth, the second from the left and the second from the right, though they look different, taste the same.

After listening, William smiled and said, "A simple logic puzzle. I wonder who came up with it."

"These Potions were all brewed by Professor Snape, so he probably set this up too." Cedric looked down at the bottles.

Hermione also smiled. "Many of the greatest Wizards don't have a lick of logic; they'd be trapped here forever, but this one isn't too hard."

William nodded. To be honest, Muggles were much better at this than Wizards; their academic education ensured they possessed strong logic in many situations.

"Then why don't we see who can deduce it first?" Hermione suggested.

William used his wand to conjure a piece of parchment and held a quill, smiling. "You guys work on the deduction; I'm going to leave a little gift for Professor Snape."

After a moment's thought, William quickly wrote on the parchment:

Professor Snape and Professor Dumbledore each have a non-zero natural number in their hands. It is known that the product of the two numbers is either 8 or 16.

Snape: 'I don't know Dumbledore's number.'

Dumbledore: 'I don't know Snape's number either.'

Snape: 'I still don't know.'

Dumbledore: 'I still don't know either.'

Snape: 'I know now.'

Dumbledore: 'I know now too.'

Question: What are the numbers in their hands?

After William finished writing, he placed it on the table. Hermione had already been the first to solve the riddle Snape left behind.

She clapped her hands happily. "I've got it! This smallest bottle will help us pass through the black flames."

William picked up the inconspicuous little bottle and sniffed it carefully. It was another Potion he had never seen before.

Professor Snape really is a dark horse; he even invented a Potion that can withstand Fiendfyre. Terrifying.

"Is such a small bottle enough for all of us to drink?" Cedric asked.

William used Transfiguration to conjure six straws. "If it's just a few drops per person, it should be enough."

William used a straw to take a few drops and let them fall into his mouth. The taste was like ice, instantly permeating his entire body.

Everyone carefully took a few drops, leaving one small mouthful in the little bottle.

William left the bottles containing nettle wine but took all the other Potions with him.

"This is a Potion that can suppress Fiendfyre; I need to study it," William said seriously. "I'll try to find out the ingredients."

"Can you really figure it out?" Hermione asked with interest.

"Of course I can."

"I just need Scarpin's Revelaspell to analyze the Potion's ingredients, though it is quite complex and will take a long time to try," William explained.

"And these bottles of poison—since they were brewed by Professor Snape, the toxicity must be very potent.

I'll also try to see if I can brew an antidote. You know, according to Golpalott's Third Law... the antidote for a blended poison is equal to more than the sum of the antidotes for each of the separate components.

We not only have to choose the antidote for each individual component but also find the added component, which, through a process almost like Alchemy, transforms the various unrelated components..."

Everyone felt like they were listening to a foreign language because William was talking about content from the Advanced Potion-Making textbook, which isn't studied until the sixth year.

Although Hermione didn't understand, she still looked interested, as if she thought the method sounded very intriguing.

After a moment, William was the first to step into the Fiendfyre. He saw the black flames licking his body, but he felt nothing.

In that instant, he could see nothing but the black flames before his eyes—then, he successfully reached the other side and entered the final room.

It was a spacious, beautiful circular room filled with various funny little noises. On tables with spindly legs sat many strange silver instruments, whirring and puffing out small clouds of smoke.

The walls were covered with portraits of former Headmasters and Headmistresses, all of them snoring softly in their respective frames.

But in fact, they were all snickering secretly.

Wait, this room looks so familiar.

"Uh—isn't this the Headmaster's Office?!"

Despite it being September, William felt his hands and feet go cold. He turned to leave immediately.

Dumbledore set up such complex trials just to find out who was out wandering at night?

This is entrapment!

How bored can he be!

Just as he was about to turn back, Cedric and the others came swarming in.

Fred looked at the silver instruments on the table and laughed loudly. "Is this our reward for finishing the trial?"

Reward my foot!

William quickly told him to shut up while lowering his voice. "Leave quickly... this is Dumbledore's office..."

Everyone's faces stiffened, and they quickly turned to leave.

"Since you're here, why not chat for a bit? I'm quite happy to have a heart-to-heart with young wizards before bed to understand the students' psychological state.

I'm even more curious to know why they aren't lying in their own beds at midnight, but instead appeared here?"

The door to the office bedroom suddenly opened, and Dumbledore walked out wearing a fuzzy purple dressing gown and a nightcap with a small ball on top.

In Dumbledore's arms was Bobocha, who was looking at William with a face full of innocence, letting out a weak meow.

They really did come to have a late-night party right in front of the Headmaster's bed!

William stood at the front, smiling awkwardly, while Hermione hid behind him, trying to lower her presence so as not to be noticed by the Headmaster.

"I told you we shouldn't have come!" If Dumbledore hadn't been there, the girl would have shouted it out.

"Sit down," Dumbledore said kindly.

Six chairs appeared beneath everyone's bottoms.

"Something to drink?" Dumbledore mused for a moment. "Milk will do. A glass of milk before bed is good for the stomach."

Dumbledore waved his wand, and six glasses of steaming milk appeared on the table.

"Ah, Bobocha, so you're here." William acted as if he had just suddenly spotted his cat.

He bit the bullet and said, "I thought you were missing, so I brought them along to look for you late at night. I didn't expect you to be here with the Headmaster... ahaha..."

Cedric and the others all nodded hastily, laughing awkwardly with serious expressions, seemingly endorsing William's story.

Dumbledore smiled slightly and sat down in a chair.

"Well then, you've broken at least a dozen school rules. How many points should I deduct from you?"

Dumbledore said cheerfully.

...

...

(Thanks to'Still a Little Bun' for the tip, \(//?//)\)