LinkedIn interview question

Nested List Weight Sum on LC