Nextbridge Interview Question

Methods to flatten all the array objects in to one array?