Sleep apnea is a medical condition where the patient's airways become obstructed during sleep. It leads to snoring and, in…