Sleep apnea is a disorder in which the patient feels difficulty to breathe while sleeping. Breathing process becomes shallow and…