Pergunta de entrevista da empresa Affirm

Recursive and iterative way to flatten a list, given [1, [2,3], [[[4]]]], return [1,2,3,4].