Qualcomm Interview Question

Convert Roman number to Int