Example 2:
Solution: