DIY: Nested List Weight Sum

Solve the interview question "Nested List Weight Sum" in this lesson.

Problem statement

For this challenge, you are given a nested list of integers. A nested list is a data structure in which each element is either an integer or a ...