Surgery is done to repair a problem, relieve pain, or improve some body function. Some…