N-ary Tree Duplication - Coding problem | OneNoughtOne