Pergunta de entrevista da empresa PayPal

Flatten an array (recursive and iterative)