I am seeking an optimized solution for traversing a list of objects (groups) where I need to apply inheritance:
For example :
Level4:
[Group 1 ,