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