Sleeping is an important function of the body that allows it to rest and be reenergized for the next day.…