Amazon interview question

roman numbers to literal conversion