Sabre interview question

Convert an input number into Roman Numerals using JavaScript