recursion
Task look like this
It is necessary to recursively add all elements from one list to another list
It is necessary to recursively add all elements from one list to another list
Value “outputList” should contain all records and subrecords from “inputList” tree. For example: if in tree we have 5 records on first level and 8 records on second level, we would like to see 13 records without childs in “outputList”