Print all the elements in an array of arrays without using nested loops.
Eg: [[1 2], [3 4 5 6], [8 9]]
Ouptut: 1 2 3 4 5 6 8 9