Sigaram Interview Question

Roman Numbers to Integers with optimised logic