Sleep apnea is a sleep disorder in which the person suffers from abnormal pauses in breathing and every pause is…