Grinding noise when in 4 wheel drive. What would cause this & approx $ of repair on 2001 Chevrolet Tracker

I don't yet own this vehicle but thinking of buying.

Asked by for the 2001 Chevrolet Tracker
Really depends on where its coming from. Probably not cheap.
Thanks, Yeah I think I'm going to pass on it.