Applaunch interview question

Flatten an array with nested children upto 3 level