Amazon interview question

Write a function to convert an to and from Roman numerals