Endoscopy is a technique used to explore the stomach or other inner parts of the body it is based on which phenomenon?

Total internal reflection