Amazon interview question

flatten array using recursion in javascript