KoderLabs interview question

Convert roman characters into numbers For Example: XI = 11