d.
He had time to kill while waiting for a ship to Luggnagg.
Explanation:
Gulliver travels to a lot of small worlds in the 3rd book of the brilliant satire of Jonathan Swift.
As Gulliver waits for his ship for Luggnagg he makes a short detour to visit the place called Glubbdubdrib and to his amusement it is one of the most unusual places he had ever had the pleasure to see.
It was choke full of magicians and sorcerers practicing dark and incomprehensible arts and urged Gulliver to try.
Gulliver in turn uses their powers to converse with great personalities from the pat who are long dead.