Roman numerals have been an integral part of numerical systems for centuries, offering a unique…