The object keyword in Kotlin creates singleton in a very convenient way. It can be used for example as a…