Solution: For the following structure

Problem

For the following structure