Nested List Weight Sum II
Given a nested list of integers, return the sum of all integers weighted by their inverse depth — integers at the deepest level are weighted 1, and shallower integers get higher weight.
Enable JavaScript for the full StreamPrep guide.