Sleep apnea is a condition where the breathing of the person suffering from it is obstructed during sleep. The breathing…