Sleeping is an essential function for our body to remain healthy, to have energy and to be able to perform…