Your question is Flatten Nested Integer List. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Flatten a nested list containing integers and sublists into a single list of integers in left-to-right order. The nesting can be arbitrarily deep, and empty lists may appear anywhere.