Fidessa Interview Question

Convert roman to integer from I(1) to M(1000)