Appian interview question

Given some starter code on coderpad to write an algorithm to write any number as a string of Roman numerals.