Algorithm solution to convert decimal numbers to Roman numerals and vice versa