Question: Judith of Bavaria's husband was king of what country 875 to 877?

Context paragraphs:
Gyeongmun of Silla: Gyeongmun of Silla (841–875) (r. 861–875) was the 48th ruler of the Korean kingdom of Silla.  He was the grandson of King Huigang, and the son of the "ichan" Kim Gye-myeong.  His mother was Lady Gwanghwa, the daughter of King Sinmu.  Gyeongmun married Queen Munui, who was the daughter of King Heonan.

Judith, Duchess of Bavaria: Judith (925 – 29 June after 985), a member of the Luitpolding dynasty, was Duchess consort of Bavaria from 947 to 955, by her marriage with Duke Henry I.  After her husband's death, she acted as regent of Bavaria during the minority of her son Henry the Wrangler.

Carloman of Bavaria: Carloman (German: "Karlmann" , Latin: "Karlomannus" ; c. 830 – 22 March 880), was a Frankish king of the Carolingian dynasty.  He was the eldest son of Louis the German, king of East Francia, and Hemma, daughter of a Bavarian count.  His father appointed him margrave of Pannonia in 856, and upon his father's death in 876 he became King of Bavaria.  He was appointed by King Louis II of Italy as his successor, but the Kingdom of Italy was taken by his uncle Charles the Bald in 875.  Carloman only conquered it in 877.  In 879 he was incapacitated, perhaps by a stroke, and abdicated Bavaria to Louis the Younger and Italy to Charles the Fat.

Judith of Bavaria (died 843): Queen Judith (797– 19 April 843), also known as Judith of Bavaria, was the daughter of Count Welf of Bavaria and Saxon noblewoman, Hedwig.  She was the second wife of Louis the Pious, King of the Franks and Emperor of the Romans, which brought her the titles of queen and empress.  Marriage to Louis marked the beginning of her rise as an influential figure in the Carolingian court.  She had two children with Louis, a daughter Gisela and a son, Charles the Bald.  The birth of her son led to a major dispute over the imperial succession, and tensions between her and Charles' half-brothers from Louis' first marriage.  She would eventually fall from grace when Charles' wife, the new empress Ermentrude of Orléans, rose to power.  She was buried in 846 in Tours.

Judith of Flanders (died 1095): Judith of Flanders, Countess of Northumbria, and later Duchess of Bavaria (1030-35 to 5 March 1095) was the wife firstly of Tostig Godwinson, Earl of Northumbria, and secondly of Welf I, Duke of Bavaria.  Her niece was Matilda of Flanders, Queen consort of William the Conqueror, who was Judith's cousin.

Halfdan Ragnarsson: Halfdan Ragnarsson (Old Norse: "Hálfdan" ; or "Healfdene"; Old Irish: "Albann" ; died 877) was a Viking leader and a commander of the Great Heathen Army which invaded the Anglo-Saxon kingdoms of England, starting in 865.  According to the tradition recorded in the Norse sagas he was one of the sons of Ragnar Lodbrok, and his brothers included Björn Ironside, Ivar the Boneless, Sigurd Snake-in-the-Eye and Ubba.  He was the first Viking King of Northumbria and a pretender to the throne of Kingdom of Dublin.  He died at the Battle of Strangford Lough in 877 trying to press his Irish claim.

Charles the Bald: Charles the Bald (13 June 823 – 6 October 877) was the King of West Francia (843–77), King of Italy (875–77) and Holy Roman Emperor (875–77, as Charles II).  After a series of civil wars during the reign of his father, Louis the Pious, Charles succeeded by the Treaty of Verdun (843) in acquiring the western third of the Carolingian Empire.  He was a grandson of Charlemagne and the youngest son of Louis the Pious by his second wife, Judith.

Kingdom of Bavaria: The Kingdom of Bavaria (German: "Königreich Bayern" ) was a German state that succeeded the former Electorate of Bavaria in 1805 and continued to exist until 1918.  The Bavarian Elector Maximilian IV Joseph of the House of Wittelsbach became the first King of Bavaria in 1805 as Maximilian I Joseph.  The crown would go on being held by the Wittelsbachs until the kingdom came to an end in 1918.  Most of Bavaria's present-day borders were established after 1814 with the Treaty of Paris, in which Bavaria ceded Tyrol and Vorarlberg to the Austrian Empire while receiving Aschaffenburg and Würzburg.  With the unification of Germany into the German Empire in 1871, the kingdom became a federal state of the new Empire and was second in size, power, and wealth only to the leading state, the Kingdom of Prussia.  In 1918 Bavaria became a republic, and the kingdom was thus succeeded by the current Free State of Bavaria.

Gerold, Prefect of Bavaria: Gerold (died 799) was an Alamannian nobleman who served the Frankish King, Charlemagne, as Margrave of the Avarian March and Prefect of Bavaria in what is now South-Eastern Germany.  Gerold played a significant role in the integration of Bavaria into the Frankish Kingdom during Carolingian expansion in the late 8th, and early 9th centuries.  Gerold both aided the continuity of Agilofing rule of Bavaria, as well as took steps to integrate Bavarians into the wider scope of the Frankish Kingdom.  Gerold was related both to the Agilofing family, the ruling class of Bavaria, as well as the Carolingian family.  The Agilofings had ruled Bavaria since Duke Garibald I in 548.  Gerold was born into the Agilofings, and his sister Hildegard was married to Charlemagne in 771. From these familial connections, he was appointed Prefect of Bavaria following the deposition of Duke Tassilo III in 788.  Gerold was heralded as a superb military commander, giving rise to his promotion to Prefect as a defender of the eastern border of the Frankish Kingdom.  In 799, Gerold is said to have fallen in battle against the Avars, shortly after the same Avars killed his ally, Erich, Duke of Friuli, through treachery.

Wang Ying (Tang dynasty): Wang Ying (王郢) (died 877) was a rebel military officer of the Chinese dynasty Tang Dynasty who, from 875 to 877, roamed and pillaged the modern Zhejiang and Fujian region.

Supporting paragraphs: Charles the Bald Judith of Bavaria (died 843)
Answer: Italy