Okta interview question

Create linked list at each level in a tree in reverse order