Understanding Memory Management, Strong, Weak and Unowned References Behind all the coding that we are doing, you may have noticed some of your variables…