Sail Technologies interview question

flatten the array. And javascript questions like carrying, recursion, call, bind, apply etc