LinkedIn interview question

Roman to integer, Nested List Weight Sum