LinkedIn interview question

Nested List sum? (Both regular and reverse)