AMD Interview Question

Flatten a nested Python list