Insomnia would be the failure to obtain a sufficient amount or perhaps quality of sleep. The difficulty could be in…