eBay interview question

Implement an n-ary tree