Wix interview question

The Roman numerals leetcode question