Pregunta de entrevista de IBM

Question about data structures with roman numerals