Endoscopy is a minimally invasive medical procedure used to examine a person's digestive tract. It involves using a thin, flexible…