Optic fiber is a thin cylindrical fiber made from plastic or glass, that is as small as one tenth of…