Dell Technologies Interview Question

Convert roman to integer in Java