Mastercard Interview Question

Leetcode question regarding organizing roman numerals.