i-Showcase interview question

Write a recursion algorithm for updating the product and applying changes. Recurse through parent collections until the product child is found and apply changes.