Create flattenTreeToLinkedList.java