Question d’entretien chez Mastercard

Leetcode question regarding organizing roman numerals.