In this article we will explain the basic scenarios of a requirement for unwrapping an optional and …