Roman Numerals Alogrithm Challenge

I am having a LOT of trouble. I’ve read the first two hints but I really don’t wanna look at the answer. I really don’t understand how this would work. Can someone point me in the right direction?