LinkedIn Interview Question

Nested List sum? (Both regular and reverse)