Optic fiber is a thin, cylindrical fiber made of plastic or glass, smaller than one tenth of a human hair.…