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