Within an object, there are numerous parent and child elements
var obj={
name: 'one',
child:{
name: 'two',
child:{
name: 'three',
child..
}
}
}
foo(obj)
Create a function that produces the output ['one', 'two', 'three', ...]